by william17 » Mon Nov 04, 2019 6:38 pm
Hello Apprentice,
thank you for your work,
But we have a problem with the open position with SAR,
The change SAR UP / SAR DOWN is not respected
So, it is possible to replace by the following idea:
enterLongAction.IsPass = function (source, period, periodFromLast, data)
return source.close[period] > SAR.DOWN:hasData(period)
and source.close[period - 1] < SAR.UP:hasData(period - 1)
and source.close[period] > Ichimoku.SA[period]
and source.close[period] > Ichimoku.SB[period]
and RSI.DATA[period - 1] < rsi_entry_level;
and ADX.DATA[period] > 25;
end
And
enterShortAction.IsPass = function (source, period, periodFromLast, data)
return source.close[period] < SAR.UP:hasData(period)
and source.close[period - 1] > SAR.DOWN:hasData(period - 1)
and source.close[period] < Ichimoku.SA[period]
and source.close[period] < Ichimoku.SB[period]
and RSI.DATA[period - 1] > rsi_entry_level;
and ADX.DATA[period] > 25;
end
As you can see, i have add the ADX indicators,
And for information, here are my settings in upload attachement,
Thank you for your help,
- Attachments
-
- settings