Set up the Martingale 1st, set 1st trade, however, you want it to be set, in a separate tree, use pink blocks, for each trade, pips away buy/sell using last trade lot in a loop and multiplying it in adjust (+multiply constant)
Posts made by jstap
-
RE: How to build martingale EA with TP shownposted in Questions & Answers
-
RE: How to build martingale EA with TP shownposted in Questions & Answers
I have never tried, but you can likely set this up in a trail block. Give it a try and let us know what happens...

-
RE: How to build martingale EA with TP shownposted in Questions & Answers
It is far easier to forget about the lines and close all when a set profit is reached...
-
RE: How to draw a line in the past candle.posted in Questions & Answers
Condition block candle high (with ID you want) is above x.xx, connected to a condition block (with the same ID) candle low is below x.xx, probably want to use ID1 so it is constantly checking the last closed candle.
-
RE: why is mt5 ea not workingposted in Questions & Answers
Once per bar you are checking candle 0, remove this for test, or check candle 1.
-
RE: Spread filterposted in Questions & Answers
The spread filter block I haven't used in a long time, but would be spread is < x.xx
-
RE: risk based volume (OrderCalcProfit) ?posted in Questions & Answers
Work similarly, but works in areas that custom code doesn't.
-
RE: risk based volume (OrderCalcProfit) ?posted in Questions & Answers
When you have this much code things can be difficult. Some code can only be added in custom blocks, split this down into smaller sections, then add bits until you find what is causing an error, then fix and add more, until you get all working. V not allowed on current scope is common for something tat needs to be in a custom block.
-
RE: candel timeposted in Questions & Answers
And candle time makes more sense than ID, this stays the same, save it into an int variable, this should give you seconds from 1970, put this into a comment, if not int is a string, once you know, try to use, and possibly turn back into a string, you can then use this in blocks. Get this working, any problems, put a shared link and I'll help with what to do next.
-
RE: How to calculate price distance from last orderposted in Questions & Answers
Just have a look on the left, you will see these in the pink section
-
RE: candel timeposted in Questions & Answers
More information, you will need code to get the time of an ID
-
RE: How to calculate price distance from last orderposted in Questions & Answers
Pink blocks, for each trade-pips away-buy/sell
-
RE: risk based volume (OrderCalcProfit) ?posted in Questions & Answers
Lets see how you have put it all together, not just the error. Add a shared link here.
-
RE: checking 20 previous candles for setting SLposted in Questions & Answers
Lowest price 5 candles, adjust by the - pip offset you need.
-
RE: MACD Divergence with Zigzag Indicatorposted in Questions & Answers
Not really mate because this is a lot of work, if you create a test project, and add a shared link I will look at what you have done.