Forums › ProRealTime English forum › ProScreener support › Screener for my own indicator › Reply To: Screener for my own indicator
08/14/2018 at 12:17 PM
#78138
I suggest that you use your indicator as a strategy and debug it with ProOrder, changing GRAPHed variables to watch all of them:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
MyHigh = Highest[20](high) MyLow = Lowest[40](low) //Ichimoku Tenkansen = (highest[9](high)+lowest[9](low))/2 Kijunsen = (highest[26](high)+lowest[26](low))/2 SpanA = (tenkansen[26]+kijunsen[26])/2 SpanB = (highest[52](high[26])+lowest[52](low[26]))/2 //MA Settings MyMA = WilderAverage[30](close) Long1 = High>MyHigh[1] Long2 = close > SpanA and close > SpanB Long3 = Close>Close[1] and close>MyHigh[1] Long4 = Close>MyMA Stage2 = Long1 and Long2 and Long3 and Long4 Stage3 = Close<MyMA and Direction[1]=1 Short1 = Close<MyLow[1] Short2 = close < SpanA and close < SpanB Short3 = Close<Close[1] and close<MyLow[1] Stage4 = Short1 and short2 and short3 Stage1 = Close>MyMA and Direction[1]=-1 if stage2 then direction=1 elsif stage3 then direction=0.5 elsif stage4 then direction=-1 elsif stage1 then direction=-0.5 endif graph MyHigh graph MyLow graph MyMA graph close graph high buy at -close limit |
the last line is a dummy one required by ProOrder.