Scalping line indicator

Category: Indicators By: Nicolas Created: October 21, 2015, 9:21 PM
October 21, 2015, 9:21 PM
Indicators
3 Comments

Here is another derivated indicator of the stair step moving average exploration. This time the stairstep MA (the main trend) represent the center of the oscillator. The signal line (white line on screenshot attached) is the difference between this center and a simple moving average of 7 periods by default. 

Trade signals seems pretty effective on tick charts representation (DAX/GER30 100 or 20 ticks for example). Take long when signal line cross above zero and short below it. Of course, as always objectives and stoploss protection are your responsabilities 🙂

You can play with different parameters to sweet any other instruments.

//parameters :
//percent = 1 
//mainperiod = 100
//signalperiod = 7

once ssMA = close
MA = TriangularAverage[mainperiod](close)

if(MA > ssMA + (MA/100)*percent) THEN
   ssMA = MA
ELSIF (MA < ssMA - (MA/100)*percent) THEN
   ssMA = MA
ELSE
   ssMA = ssMA
ENDIF

signalLine = average[signalperiod](close)

linedraw = signalLine - ssMA


RETURN linedraw as "scalp line", 0 as "center line"

 

Download
Filename: scalping-line-20-ticks.png
Downloads: 189
Download
Filename: Scalping-line.itf
Downloads: 519
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...