Hello
Can we add this complement in this strategy?
Here is the link because you have created several different strategies:
BB_ANALYSER hautement adaptable avec Trend Stop Filter.lua
viewtopic.php?f=31&t=64447&hilit=BB_ANALYSER
Amount invested per position: 10 lots
Degressive rate applied to positions: 50%
Example:
1st trade: 10 lots in buy
2nd trade: = 10 lots * 50% = 5 lots in buy
3rd trade = 5 lots * 50% = 2.5 (rounded 3 lots) in buy
If a trade in sell resets the position counter
Filter:
With the indicator:
With the stop loss indicator: Calculate_Stop_Loss.lua:
viewtopic.php?f=28&t=4639&p=11425&hilit=Retrieving+Account+%26+Trade+Info#p11530
If the stop loss indicator: Calculate_Stop_Loss.lua = is negative then do not allow the 2nd trade, 3rd ...
if stop loss: Calculate_Stop_Loss.lua = is positive then allow the 2nd trade, 3rd, ...
Example
If Calculate_Stop_Loss.lua = -10 then no 2nd trade
If Calculate_Stop_Loss.lua = + 20 then 2nd trade allow
Indicator that raises the stop loss so that Calculate_Stop_Loss.lua works:
Stop follower = indicator: trend stop:
viewtopic.php?f=17&t=12728&hilit=TRENDSTOP
Tracker stop setting
Time frame: h4
Period: 10
Triger: close / HL
End of turn / live
The trailing stopper has to put the stop loss back on the graph
Thank you for your future work