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

Pipcruiser's Pipmasher on Steroids
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4098
Page 4 of 26
Author:  Wapen [ Sun Feb 15, 2015 4:35 pm ]
Post subject:  Pipmasher on Steroids

SteveHopwood » Sat Feb 14, 2015 7:46 pm wrote:Discussion in the original PP thread about more adaptive sl/tp using ATR convinced me to add the feature - V 1b in post 1.

AtrPeriod = 0 turns off the use of atr altogether. Setting AtrTpMultiplier to 0 turns off use of atr for the take profit. Setting AtrSlMultiplier to 0 turns off use of atr for the stop loss.

:xm:

Thanks Steve for adding the ATR optopn.
Author:  SteveHopwood [ Sun Feb 15, 2015 6:39 pm ]
Post subject:  Pipmasher on Steroids

V 1c is in post 1.

Angat asked me to add ATR functionality to the breakeven and jumping stop features, so there are two new inputs in the ATR for SL/TP inputs - AtrBeMultiplier (breakeven) and AtrJsMultiplier (jumping stop).

So, to use ATR for your own choice of stops, set AtrPeriod to > than zero, then the associated multipliers to your required value - 0 turns off the individual function.

Noobs, you do not need the update if you haven't the faintest idea what I am talking about.

Have fun folks.

:xm:
Author:  Reaper [ Sun Feb 15, 2015 10:10 pm ]
Post subject:  Pipmasher on Steroids

SteveHopwood » Sun Feb 15, 2015 6:39 pm wrote:V 1c is in post 1.

Angat asked me to add ATR functionality to the breakeven and jumping stop features, so there are two new inputs in the ATR for SL/TP inputs - AtrBeMultiplier (breakeven) and AtrJsMultiplier (jumping stop).

So, to use ATR for your own choice of stops, set AtrPeriod to > than zero, then the associated multipliers to your required value - 0 turns off the individual function.

Noobs, you do not need the update if you haven't the faintest idea what I am talking about.

Have fun folks.

:xm:
Just sent you a $5 tip.

Been busy with other things, didn't have time to have a go at it myself. Thanks for this.

:clap:
Author:  matt_32 [ Mon Feb 16, 2015 9:24 am ]
Post subject:  Pipmasher on Steroids

Thank you Steve for this version...

I played around with ATR and saw that the ATR period variable has probably a bug somewhere, as it cannot really be changed.

I choose ATR period 14 and it gives me the same TP as if it was 20
I choose ATR period 5 and it still gives me the same TP as if it was 20


Is it just me


Matt
Author:  SteveHopwood [ Mon Feb 16, 2015 10:40 am ]
Post subject:  Pipmasher on Steroids

matt_32 » Mon Feb 16, 2015 9:24 am wrote:Thank you Steve for this version...

I played around with ATR and saw that the ATR period variable has probably a bug somewhere, as it cannot really be changed.

I choose ATR period 14 and it gives me the same TP as if it was 20
I choose ATR period 5 and it still gives me the same TP as if it was 20


Is it just me


Matt
I love the way people get something wrong and then assume there is a bug in the code. I do not know how many times I have to tell people that it is no use using the F7 key to change inputs. You have to drag a fresh instance of the ea onto your chart and make the changes that way.

Looking at the colour of your name, you are supposed to know stuff like that. Or am I wrong to have assigned Battle-Scarred Veteran status to you?

Thank your lucky stars I did not just spend two hours searching for a non-existent bug.
Author:  matt_32 [ Mon Feb 16, 2015 12:23 pm ]
Post subject:  Pipmasher on Steroids

SteveHopwood » Mon Feb 16, 2015 12:40 pm wrote:
matt_32 » Mon Feb 16, 2015 9:24 am wrote:Thank you Steve for this version...

I played around with ATR and saw that the ATR period variable has probably a bug somewhere, as it cannot really be changed.

I choose ATR period 14 and it gives me the same TP as if it was 20
I choose ATR period 5 and it still gives me the same TP as if it was 20


Is it just me


Matt
I love the way people get something wrong and then assume there is a bug in the code. I do not know how many times I have to tell people that it is no use using the F7 key to change inputs. You have to drag a fresh instance of the ea onto your chart and make the changes that way.

Looking at the colour of your name, you are supposed to know stuff like that. Or am I wrong to have assigned Battle-Scarred Veteran status to you?

Thank your lucky stars I did not just spend two hours searching for a non-existent bug.


Sorry Steve, my mistake. Everything is like you said.

Sorry

:oops:

Matt
Author:  SteveHopwood [ Mon Feb 16, 2015 6:23 pm ]
Post subject:  Pipmasher on Steroids

V 1c is in post 1. Zennor wanted risk-based lot sizing for the multi-level trades as well as the main trade, so I have added it.

Remember that risk-based lot sizing only works if you have a stop loss, and that a ridiculously far away emergency only stop will make your risk-based lot size look silly.

:xm:
Author:  Zennor [ Mon Feb 16, 2015 7:07 pm ]
Post subject:  Pipmasher on Steroids

Steve that was very quick work indeed. Many thanks for this update.
Author:  SteveHopwood [ Tue Feb 17, 2015 10:07 am ]
Post subject:  Pipmasher on Steroids

V 1d is in post 1 with the fix for the incorrect risk-based multi-trade lot sizes.

Make your own fixes by going to line 1987 and changing:
SendSingleTrade(Symbol(), OP_BUYSTOP, TradeComment, MultiTradeLot, price, stop, take);

to:
SendSingleTrade(Symbol(), OP_BUYSTOP, TradeComment, SendLots, price, stop, take);

then repeat the exercise at line 2019, then F7 to recompile.

:xm:
Author:  Zennor [ Tue Feb 17, 2015 11:34 am ]
Post subject:  Pipmasher on Steroids

Gulp... Here goes....
Steve,

I deleted 1c off my pc, installed 1d.

Removed all pending trades, set the risk percent to 1% for both Main and Multitrades.

Set EA to trade 24 hours for testing purposes.

Attached is the result of the trades.
All times are UTC Page 4 of 26