Been a bit busy recently and then preoccupied with Mr Pips post, I took another look at resolving the problem of requiring a separate indicator on the chart.
Changes:
1) Found a way to incorporate the modified MM indicator in the EA
The MM lines are now drawn withing Pippo which means the separate indicator is no longer required on the chart. This should make it possible to backtest but the test I did last night took no trades. Hopefully I can fix that quickly
2) It is now possible to start pippo trading at levels other than the extremes
This is done using "FirstTradeLine".
Set to 5 to open first trade at the [2/8]
Set to 3 to open first trade at the [0/8]
and then use MaxTrades to determine how many trades are opened.
This appears to work but I've not tested many of the numerous possibilites this new flexibility throws up.
3) Added new Parameter:- UseLimitOrders, UseStopOrders
if UseStopOrders = true. Pippo will create BUYSTOPs and SELLSTOPs as suggested by DRoland and Gertje
if UselimitOrders = true. Pippo will create BUYLIMITs and SELLLIMITs as suggested by DRoland and Gertje
These two parameters can be used together to ensure you are pretty much always in when the price is meandering in the extreme bands
4) Changed the way pendings are chosen for deletion to allow both of the above to be used simultaneously.
5) Parameterised the saving of MML's when trades are open. This is now optional
6) Added: Code to change the magic number when a hedge is opened.
This needs more work but won't break anything as it is
7) Added: code to prevent Mode_History stuff from running in test as recommended by MrPip
8) Added MrPip's 3 session code. (Thanks)
The updated 3 trading session code, I found in one of Mr Pips EA's and very shamelessly nicked!
I've included 2 set files in post 1.
One of these is a standard scalping set. The other captures larger retracements TP set to 300. This allows you to trade with 0.01 lots at each level and still close the basket in good profit.
Changes:
1) Found a way to incorporate the modified MM indicator in the EA
The MM lines are now drawn withing Pippo which means the separate indicator is no longer required on the chart. This should make it possible to backtest but the test I did last night took no trades. Hopefully I can fix that quickly
2) It is now possible to start pippo trading at levels other than the extremes
This is done using "FirstTradeLine".
Set to 5 to open first trade at the [2/8]
Set to 3 to open first trade at the [0/8]
and then use MaxTrades to determine how many trades are opened.
This appears to work but I've not tested many of the numerous possibilites this new flexibility throws up.
3) Added new Parameter:- UseLimitOrders, UseStopOrders
if UseStopOrders = true. Pippo will create BUYSTOPs and SELLSTOPs as suggested by DRoland and Gertje
if UselimitOrders = true. Pippo will create BUYLIMITs and SELLLIMITs as suggested by DRoland and Gertje
These two parameters can be used together to ensure you are pretty much always in when the price is meandering in the extreme bands
4) Changed the way pendings are chosen for deletion to allow both of the above to be used simultaneously.
5) Parameterised the saving of MML's when trades are open. This is now optional
6) Added: Code to change the magic number when a hedge is opened.
This needs more work but won't break anything as it is
7) Added: code to prevent Mode_History stuff from running in test as recommended by MrPip
8) Added MrPip's 3 session code. (Thanks)
The updated 3 trading session code, I found in one of Mr Pips EA's and very shamelessly nicked!
I've included 2 set files in post 1.
One of these is a standard scalping set. The other captures larger retracements TP set to 300. This allows you to trade with 0.01 lots at each level and still close the basket in good profit.