william17_strategy

Strategies are published here.

Moderator: admin

william17_strategy

Postby Apprentice » Fri Nov 01, 2019 7:29 am

1.png

2.png

Based on request.
viewtopic.php?f=27&t=68927
william17_strategy.lua
(132.57 KiB) Downloaded 20 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22936
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: william17_strategy

Postby 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
Capture.PNG
settings
william17
 
Posts: 45
Joined: Wed Feb 08, 2017 9:24 am


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 6 guests