Swing Shift

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Swing Shift

Postby Apprentice » Tue Apr 17, 2012 2:29 pm

SS.png

This indicator shows the percentage change from Swing, High / Low.
There are two modes.
Cumulative-sum of all percentage changes.
Absolute - Change from last Swong Low / High.
SS.lua
(3.95 KiB) Downloaded 785 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Swing Shift

Postby Alexander.Gettinger » Tue Nov 18, 2014 12:23 pm

MQL4 version of Swing Shift oscillator: viewtopic.php?f=38&t=61471.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Swing Shift

Postby Apprentice » Wed Jun 28, 2017 5:28 am

The indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Swing Shift

Postby Cactus » Wed Feb 28, 2018 7:36 pm

Hello
Can you make this indicator compatible for tick charts? You can apply it to tick charts, but...
I see it repaints if you refresh the indicator (F5 or double click label and click ok)
And throws an error ocassionally causing it to crash (error on line 102 if absolute calculation or line 104 if cumulative)
Never chase the money, let the money come to me
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

Re: Swing Shift

Postby Apprentice » Thu Mar 01, 2018 11:43 am

Fixed.
Additional checks should prevent error messages.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Swing Shift

Postby Cactus » Thu Mar 01, 2018 7:45 pm

Thanks but I am still getting
Code: Select all
Symbol   Strategy/Indicator   Message   Time
USD/JPY   SS(USD/JPY.Close, MVA, 100, 0.01, Absolute)   An error occurred during the calculation of the indicator 'SS(USD/JPY.Close, MVA, 100, 0.01, Absolute)'. The error details: C:/Program Files (x86)/Candleworks/FXTS2/Indicators/Custom/SS.lua:128:  Specified index is out of range.   02/03/2018 03:45:06
:(

@Edit: I think that might have been because I was still using the old version of the indicator... I see the new one has these lines in it:
Code: Select all
   or not MA.DATA:hasData(period)
   or not MA.DATA:hasData(Anchor)
Never chase the money, let the money come to me
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere


Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 115 guests