I am working on creating a EA to help with the stop loss on the long strategy. I am looking people to test it and improve it. I am getting better results than the default settings on the
fapturbo on all my backtests.
I am using these settings
FapTurbo_Lots=0.00000000
FapTurbo_LotsRiskReductor=2.00000000
FapTurbo_MaxOrders=2
FapTurbo_MaxLots=10
FapTurbo_StopTime=9
FapTurbo_aaa=35
FapTurbo_bbb=48
FapTurbo_TakeProfit=20.00000000
FapTurbo_StopLoss=600.00000000
FapTurbo_TrailingStop=0.00000000
FapTurbo_DurationInHours=0
FapTurbo_CloseAfterXmonths=0
FapTurbo_PeriodMALarge=100
FapTurbo_PeriodMASmall=30
FapTurbo_PriceMA_0_6=0
FapTurbo_TypeMA_0_3=0
FapTurbo_ShiftMALarge=3
FapTurbo_ShiftMASmall=1
FapTurbo_LookForDays=2
FapTurbo_CriticalDays=0
FapTurbo_RelaxDays=0
FapTurbo_HedgingLotReducer=0.00000000
FapTurbo_Hedging=0
FapTurbo_TradeNFP=1
FapTurbo_TradeFriday=1
FapTurbo_Prudent=0
FapTurbo_SymAlligatorOnCritica=1
FapTurbo_FixedDirection=1
FapTurbo_ClsLsrOnMrktChnge=0
FapTurbo_AlwaysTrade=0
FapTurbo_LowLot=0.10000000
FapTurbo_TooGoodToBeTrue=50
FapTurbo_PrudentPeriod=30
FapTurbo_StartWorkTimeHour=0
FapTurbo_StartWorkTimeMin=0
FapTurbo_EndWorkTimeHour=0
FapTurbo_EndWorkTimeMin=0
FapTurbo_OneTrade=0
FapTurbo_SpanGator=0.50000000
FapTurbo_SlipPage=3
Safeguard Settings
FapTurbo_TakeProfit = 20;
FapTurbo_StopLoss=600.0;
InitialStop=300.0;
Margin=150.0;
Factor=2;
Trailstop=100;
InitialStop is the level where the EA open the opposite trade.
Margin is the stop loss of the opposite trade and break even level
Factor is the multiplier of the lot size for the opposite trade.
The way it work when the trade reach the value InitialStop - Margin reset SL and TP.
When reaches InitialStop open a trade in the opposite direction with SL = Margin and TP = SL of the initial trade
If the trade reverse is closed by the SL
If the trade reach InitialStop + Margin move the SL to break even.
If the first opposite trade was closed by SL and the initial move back to the negative, the second opposite trade will open at InitialStop + margin avoiding possible up and down aroung the InitialStop. After the trade is close by stop loss the hedging one continues with trailing stop.
I fixed some bugs. here is the updated file.