| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Lot size management EA based on magic number https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3499 |
Page 1 of 1 |
| Author: | raghu [ Thu Mar 13, 2014 2:48 am ] |
| Post subject: | Lot size management EA based on magic number |
I want Lot size management EA based on magic number to using for hedge grid EA trading example : ----------------------------------- when total lot size reach 10 in "Grid Buy EA ( magic 1 )" then starting lot size modify to 5 or 10 or 20 in "Grid Sell EA ( magic 2 )" this must be continue when magic 2 total lot size reach 100 then magic 1 lot size modify with X ... ! ================== input magic number = 1 magic number = 2 lot reach 1 = 10 // ( when magic 2 reach total 10 then magic 1 starting lot is 10 now ) lot reach 2 = 100 // ( when magic 1 reach total 100 then magic 1 starting lot size is 100 now ) HOW TO DO THIS AS INFINITY STARTING LOT SIZE INCREMENT BASED MAGIC NUMBER ? may be this will works with lot size percentage increment example input : lot reach 1 = 100% // ( when magic 2 reach total 10 then magic 1 starting lot is 100% that is same of 10 total lot now ) lot reach 2 = 100% // ( when magic 1 reach total 100 then magic 1 starting lot size is 100% that is same of 100 total lot now ) to lot size increment based on "percentage" sell or buy total trades should be close then only modify lot size works , i think ----------------------------------- this will helps for hedge protection |
|
| Author: | raghu [ Thu Mar 13, 2014 3:13 am ] |
| Post subject: | Lot size management EA based on magic number |
Here is example GRID EAs add this two ea in two EURUSD chart ( Americans add BUY / SELL only in EUR USD & USD CHF if your broker not allowed hedge in same currency ) back test and forward test together when BUY reach 10 trades then we need SELL trade protection to hedge but one more extra "Lot size management EA" only can help this, i explained it in above post. |
|
| Author: | raghu [ Thu Mar 13, 2014 3:29 am ] |
| Post subject: | Lot size management EA based on magic number |
This is how grid trades and lot size modify looks like , ![]() check above image there you can see 10 buy trades with 1 lot size but then sell trades starting lot modified to 5 |
|
| Author: | raghu [ Thu Mar 13, 2014 6:19 pm ] |
| Post subject: | Lot size management EA based on magic number |
i modified 2nd post's buy and sell eas input cause tp and sl true was not recommended, any coders help me for this strategy , please .... |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|