stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

The FLOW Plus ALR EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4255
Page 11 of 13
Author:  nonlinear [ Tue Oct 20, 2015 12:40 am ]
Post subject:  The FLOW Plus ALR EA

A rough observations from testing that I have yet to confirm. An ALR 1% target (with a sufficient account) seems to recover the repeat losses and then some, making it much more profitable. Risky though and more less feels like trading ALR alone on amped up risk.
Author:  nonlinear [ Wed Oct 21, 2015 1:43 pm ]
Post subject:  The FLOW Plus ALR EA

Hi Tommaso, quick question. What will happen if I change the ALR zone pips and Target pips while in the middle of a series of ALR turns? Will it still manage the trade with the new inputs or is it advisable to wait for the ALR turns to complete their cycle to target profit before altering these inputs? I ask because its seems to me that the DD can be addressed by altering these inputs according to the ATR (still confirming this, but it appears so thus far).
Author:  milanese [ Wed Oct 21, 2015 1:49 pm ]
Post subject:  The FLOW Plus ALR EA

nonlinear » Wed Oct 21, 2015 1:43 pm wrote:Hi Tomasso, quick question. What will happen if I change the ALR zone pips and Target pips while in the middle of a series of ALR turns? Will it still manage the trade with the new inputs or is it advisable to wait for the ALR turns to complete their cycle to target profit before altering these inputs? I ask because its seems to me that the DD can be addressed by altering these inputs according to the ATR (still confirming this, but it appears so thus far).
you should wait for a new turn, as it is not previsted to change this values in a open serie..
with the latest version of the ALR trademanger you could experimental do this, as it has more "intelligent" addaption code inside (this one can too trail and addapt the calculations to trailing)
http://www.stevehopwoodforex.com/phpBB3 ... =81&t=4321
Cheers :)

Tommaso
Author:  nonlinear [ Wed Oct 21, 2015 2:05 pm ]
Post subject:  The FLOW Plus ALR EA

Okay, so wait until the turns are complete. Thanks Tommaso

As I look at this, I am thinking that a "direct" correlation or adjustment based on ATR is not what is needed because ATR lags and spikes too much based on errant moves -- adjusting the ALR based on really high or really low ATR readings might lead to poor results, at least with the Flow anyway. My initial thought is that, at least for purposes of this EA, or a hybrid of it, is three input ATR zones, each with different input ALR settings. That is, zone one might be ATR less than 80, Zone two ATR80-120, zone three ATR greater than 120, etc I am thinking three zones might be sufficient, but this is only based on me testing random historical intervals with different ALR settings (this is very difficult to test). The odd part of course is when ATR crosses zones while in the middle an ALR series.

P.S> Sorry, I keep spelling your name incorrectly! Fixed it. :P
Author:  milanese [ Wed Oct 21, 2015 2:23 pm ]
Post subject:  The FLOW Plus ALR EA

nonlinear » Wed Oct 21, 2015 2:05 pm wrote:Okay, so wait until the turns are complete. Thanks Tommaso

As I look at this, I am thinking that a "direct" correlation or adjustment based on ATR is not what is needed because ATR lags and spikes too much based on errant moves -- adjusting the ALR based on really high or really low ATR readings might lead to poor results, at least with the Flow anyway. My initial thought is that, at least for purposes of this EA, or a hybrid of it, is three input ATR zones, each with different input ALR settings. That is, zone one might be ATR less than 80, Zone two ATR80-120, zone three ATR greater than 120, etc I am thinking three zones might be sufficient, but this is only based on me testing random historical intervals with different ALR settings (this is very difficult to test). The odd part of course is when ATR crosses zones while in the middle an ALR series.

P.S> Sorry, I keep spelling your name incorrectly! Fixed it. :P
you can with the latest ALR TM EA of corse deactivate the ATR calculations.. and change manual the zone inputs during a turn, the only thing you have to do is to delete the old pending order manualy..

Cheers :)

Tommaso
Author:  nonlinear [ Wed Oct 21, 2015 2:37 pm ]
Post subject:  The FLOW Plus ALR EA

Thanks, I am going to test this ATR zone approach live soon I think, after some more confirmation.
Author:  nonlinear [ Wed Oct 28, 2015 1:02 pm ]
Post subject:  The FLOW Plus ALR EA

I am testing this and I think my first ALR trade should have filled after my first trade (#8613375) hit SL. But this is what happened -- it looks like it was trying to modify a different ticket number. Journal and experts log below.

[hide]JOURNAL:
2015.10.28 08:39:45.219 '': order #8613375 sell 0.20 EURUSD at 1.10262 closed due stop-loss at price 1.10864
2015.10.28 08:39:45.172 '': modification of invalid order #8616838
2015.10.28 08:39:45.032 '': modify pending order #8616838 buy stop 0.19 EURUSD at 1.10862 sl: 0.00000 tp: 0.00000 -> price: 1.10862 sl: 1.10262 tp: 1.12184
2015.10.28 08:39:44.970 '': order was opened : #8616838 buy stop 0.19 EURUSD at 1.10862 sl: 0.00000 tp: 0.00000
2015.10.28 08:39:44.689 '': pending order buy stop 0.19 EURUSD at 1.10862 sl: 0.00000 tp: 0.00000
2015.10.28 08:39:44.408 '': order #8613375 sell 0.20 EURUSD at 1.10262 was modified -> sl: 1.10864 tp: 1.09360
2015.10.28 08:39:44.299 '': modify order #8613375 sell 0.20 EURUSD at 1.10262 sl: 1.10865 tp: 1.09359 -> sl: 1.10864 tp: 1.09360
2015.10.27 22:03:16.311 '': pending order #8613377 buy stop 0.19 EURUSD was modified -> price: 1.10862 sl: 1.10262 tp: 1.12184
2015.10.27 22:03:16.249 '': modify pending order #8613377 buy stop 0.19 EURUSD at 1.10862 sl: 0.00000 tp: 0.00000 -> price: 1.10862 sl: 1.10262 tp: 1.12184
2015.10.27 22:03:16.233 '': order was opened : #8613377 buy stop 0.19 EURUSD at 1.10862 sl: 0.00000 tp: 0.00000
2015.10.27 22:03:16.140 '': pending order buy stop 0.19 EURUSD at 1.10862 sl: 0.00000 tp: 0.00000

EXPERTS:
2015.10.28 08:40:00.039 TheFlowPlus110 EURUSD,Daily: Trade has filled correctly
2015.10.28 08:40:00.039 TheFlowPlus110 EURUSD,Daily: Alert: Trade has filled correctly
2015.10.28 08:39:52.942 TheFlowPlus110 EURUSD,Daily: Did not find #8616838 in history, sleeping, then doing retry #4
2015.10.28 08:39:52.551 TheFlowPlus110 EURUSD,Daily: Did not find #8616838 in history, sleeping, then doing retry #3
2015.10.28 08:39:46.888 TheFlowPlus110 EURUSD,Daily: Did not find #8616838 in history, sleeping, then doing retry #2
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: Did not find #8616838 in history, sleeping, then doing retry #1
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: Alert: EURUSD SL/TP order modify failed with error(4108): invalid ticket
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: EURUSD SL/TP order modify failed with error(4108): invalid ticket
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.172 TheFlowPlus110 EURUSD,Daily: unknown ticket 8616838 for OrderModify function
2015.10.28 08:39:45.032 TheFlowPlus110 EURUSD,Daily: open #8616838 buy stop 0.19 EURUSD at 1.10862 ok
2015.10.28 08:39:44.689 TheFlowPlus110 EURUSD,Daily: ManageALRTrades:Placing Buy Stop for 0.19 of EURUSD at 1.10862
2015.10.28 08:39:44.689 TheFlowPlus110 EURUSD,Daily: Alert: ManageALRTrades:Placing Buy Stop for 0.19 of EURUSD at 1.10862
2015.10.28 08:39:44.689 TheFlowPlus110 EURUSD,Daily: Modify Order Succeeded !
2015.10.28 08:39:44.689 TheFlowPlus110 EURUSD,Daily: Alert: Modify Order Succeeded !
2015.10.28 08:39:44.580 TheFlowPlus110 EURUSD,Daily: modify #8613375 sell 0.20 EURUSD at 1.10262 sl: 1.10864 tp: 1.09360 ok
2015.10.27 22:03:16.327 TheFlowPlus110 EURUSD,Daily: Trade has filled correctly
2015.10.27 22:03:16.327 TheFlowPlus110 EURUSD,Daily: Alert: Trade has filled correctly
2015.10.27 22:03:16.327 TheFlowPlus110 EURUSD,Daily: Modify Order Succeeded !
2015.10.27 22:03:16.327 TheFlowPlus110 EURUSD,Daily: Alert: Modify Order Succeeded !
2015.10.27 22:03:16.311 TheFlowPlus110 EURUSD,Daily: modify #8613377 buy stop 0.19 EURUSD at 1.10862 sl: 1.10262 tp: 1.12184 ok
2015.10.27 22:03:16.249 TheFlowPlus110 EURUSD,Daily: open #8613377 buy stop 0.19 EURUSD at 1.10862 ok
2015.10.27 22:03:16.140 TheFlowPlus110 EURUSD,Daily: ManageALRTrades:Placing Buy Stop for 0.19 of EURUSD at 1.10862
2015.10.27 22:03:16.140 TheFlowPlus110 EURUSD,Daily: Alert: ManageALRTrades:Placing Buy Stop for 0.19 of EURUSD at 1.10862
2015.10.27 22:03:16.124 TheFlowPlus110 EURUSD,Daily: Modify Order Succeeded !
2015.10.27 22:03:16.124 TheFlowPlus110 EURUSD,Daily: Alert: Modify Order Succeeded !
2015.10.27 22:03:16.124 TheFlowPlus110 EURUSD,Daily: modify #8613375 sell 0.20 EURUSD at 1.10262 sl: 1.10865 tp: 1.09359 ok
2015.10.27 22:03:16.031 TheFlowPlus110 EURUSD,Daily: Modify Order Succeeded !
2015.10.27 22:03:16.031 TheFlowPlus110 EURUSD,Daily: Alert: Modify Order Succeeded !
2015.10.27 22:03:16.015 TheFlowPlus110 EURUSD,Daily: modify #8613375 sell 0.20 EURUSD at 1.10262 sl: 0.00000 tp: 1.09062 ok
2015.10.27 22:03:15.859 TheFlowPlus110 EURUSD,Daily: #8613375 2015.10.28 05:03:58 sell 0.20 EURUSD 1.10262 0.00000 0.00000 1.10265 0.00 0.00 -0.60 DeweyEA(Spr:0.3) 507
2015.10.27 22:03:15.859 TheFlowPlus110 EURUSD,Daily: Ticket #8613375: Successful order placed, details follow.
2015.10.27 22:03:15.859 TheFlowPlus110 EURUSD,Daily: open #8613375 sell 0.20 EURUSD at 1.10262 ok
2015.10.27 22:03:15.750 TheFlowPlus110 EURUSD,Daily: Attempting to sell 0.20 of EURUSD
2015.10.27 22:03:15.750 TheFlowPlus110 EURUSD,Daily: Alert: Attempting to sell 0.20 of EURUSD[/hide]
Author:  milanese [ Wed Oct 28, 2015 1:31 pm ]
Post subject:  The FLOW Plus ALR EA

This looks strange, what was exactly your setup in this case? Is this the first time this happend?

Cheers :)

Tommaso
Author:  nonlinear [ Wed Oct 28, 2015 1:35 pm ]
Post subject:  The FLOW Plus ALR EA

This is the first time I have seen this occur. Experimental set:

[hide]en0a=====Automated Loss Recovery Settings====
useAutomatedLossRecovery=true
ALR_ZonePips=60.0
ALR_TargetPips_SameDir=90.0
ALR_TargetPips_OppDir=130.0
ALR_TargetPercentProfit=0.5
ALR_CommissionPips=1.0
ALR_MaxTrades=20
ALR_MaxLots=17.0
ALR_MaxPercentLoss=30.0
gshi=**** General settings ****
OrderCommentText=DeweyEA
TradingTimeFrame=1440
doNotUseSL=true
MinutesToWaitForNextTradeAfterClose=120
useTradingTimes=false
TradingStartHourGMT=16
TradingEndHourGMT=20
useBarsForSwingSLCalculation=2
BufferToTakeTrade=2.0
useFastTP=true
fastTP=5.0
tp1=**** this one is for Empty4 system TP ****
TakeProfit=120.0
MainMagicNumber=507
showUserDisplay=true
showDisplayBox=true
displayBoxBackgroundColour=2147483647
AddSpreadToComment=true
TrendLot=0.2
slippage=1
OpenSellTrades=true
OpenBuyTrades=true
MaxSpreadAllowedMultiplicator=1.0
fridayClSet=---FridayClose inputs----
UseCloseFriday=false
FridayCloseHour=21
FridayCloseMinute=15
RequiredMarginPercentile=100.0
CSSInput=----CCS inputs----
UseCSS=false
UseCSSForEntry=false
MinCSS_ValForTakingTrade=0.0
MaxCSS_ValForTakingTrade=0.8
maxBars=100
CssTf=240[/hide]
Author:  milanese [ Wed Oct 28, 2015 1:41 pm ]
Post subject:  The FLOW Plus ALR EA

nonlinear » Wed Oct 28, 2015 1:35 pm wrote:This is the first time I have seen this occur. Experimental set:

[hide]en0a=====Automated Loss Recovery Settings====
useAutomatedLossRecovery=true
ALR_ZonePips=60.0
ALR_TargetPips_SameDir=90.0
ALR_TargetPips_OppDir=130.0
ALR_TargetPercentProfit=0.5
ALR_CommissionPips=1.0
ALR_MaxTrades=20
ALR_MaxLots=17.0
ALR_MaxPercentLoss=30.0
gshi=**** General settings ****
OrderCommentText=DeweyEA
TradingTimeFrame=1440
doNotUseSL=true
MinutesToWaitForNextTradeAfterClose=120
useTradingTimes=false
TradingStartHourGMT=16
TradingEndHourGMT=20
useBarsForSwingSLCalculation=2
BufferToTakeTrade=2.0
useFastTP=true
fastTP=5.0
tp1=**** this one is for Empty4 system TP ****
TakeProfit=120.0
MainMagicNumber=507
showUserDisplay=true
showDisplayBox=true
displayBoxBackgroundColour=2147483647
AddSpreadToComment=true
TrendLot=0.2
slippage=1
OpenSellTrades=true
OpenBuyTrades=true
MaxSpreadAllowedMultiplicator=1.0
fridayClSet=---FridayClose inputs----
UseCloseFriday=false
FridayCloseHour=21
FridayCloseMinute=15
RequiredMarginPercentile=100.0
CSSInput=----CCS inputs----
UseCSS=false
UseCSSForEntry=false
MinCSS_ValForTakingTrade=0.0
MaxCSS_ValForTakingTrade=0.8
maxBars=100
CssTf=240[/hide]
Did you made any manual intervention, have you enough free margin?
And check if you have the EA only one time on an EURUSD chart present.

Cheers :)

Tommaso
All times are UTC Page 11 of 13