Want to code my semi martingale approach. Is this possible?
-
Hello forum fellas...new here
@ fxdreema. I found this site while searching for "forex generator" and looks very promising and i look forward to build my trading approach with which i had a bit of success but tedious task to do manually all the time.Ok lets get to business . I want to know if i can code this approach with fxDreema.orders will be triggered by indicator buffers and if my current order ends with a loss then the next position size will be a multiple of a value set by me (1.25,1.5,2..etc).So if that order closes in Take profit or gets closed by indicator trigger, then the lot size resets to initial lot size or else it will keep multiplying till an order closes with profit.
For example, If my initial lot size is 2 Std lots and it gets closed with a loss and my multiplication factor is 1.5 then the position size for my next order will be 3 Std lots.If that order ends in profit (either by hitting TP/manual close/indicator triggered close) then the lot size for next order(either buy or sell) should be reset to initial lot size which is 2 in this case.And since i need the mql source code i will subscribe.so exited about this.. 8-) 8-) 8-)
sorry for my bad english

Ravee -
There are different ways to do that. The simplest is to use the block "Buy now (Custom Martingale)" and/or "Sell now (Custom Martingale". These blocks handle Martingale by themselves. In future I think I will remove the whole betting category and I will add these money managements in "Buy now" and "Sell now" as options.
And the other way is making it more open and detailed (using more blocks and variables). Today I helped someone else with this example: http://fxdreema.com/shared/f9fYbbupc
-
First of all thanks for fhe ideas. I started goofing around the generator and i feel like a kid in candy store.Lots to be learned.This is ultimate stuff!
Of the two approaches you've listed out ,i am more inclined towards history loop based method but ill try out the other one aswell
Query about loop method: What if the expert is ran for the first time as there will previous trades to check.what happens in that case?
And how to reset the expert advisor to defaults(start all over again) when it is at nth level of martingale. Thank You -
First of all thanks for fhe ideas. I started goofing around the generator and i feel like a kid in candy store.Lots to be learned.This is ultimate stuff!
Of the two approaches you've listed out ,i am more inclined towards history loop based method but ill try out the other one aswell
Query about loop method: What if the expert is ran for the first time as there will be no previous trades to check.what happens in that case?
And how to reset the expert advisor (built by either of these method)sto defaults(start all over again) when it is at nth level of martingale. Thank You -
In Martingale blocks check this "Maximum volume size" parameter. If there are history trades, they are used in the strategy.