Or use the for each trade, get the open time in seconds after 1970, then use this to close by time value.
Posts made by jstap
-
RE: how i can close first trade when third trade openedposted in Questions & Answers
-
RE: move Lines on Chartposted in Questions & Answers
When the line is on your chart, if you double click it you can move it, this is the same as selecting it.
-
RE: Optimizationposted in Questions & Answers
You need to give a lot more information than that, check your journal tab, and add a shared link to look at.
-
RE: move Lines on Chartposted in Questions & Answers
When drawing you have the selected option, to use the value of the line, you will need to get the value from object on chart, so name it in a way you can use.
-
RE: how i can close first trade when third trade openedposted in Questions & Answers
You need to explain more about what when and why you want this to happen, there are many options to achieve this.
-
RE: A problem with the grid system, The distance between orders is broken when one tile is manually closedposted in Questions & Answers
If I have this right, change the martingale lot within the buy/sell block:

-
RE: Break even Trailing stopposted in Questions & Answers
Normally BE only works once, so they do not affect each other.
-
RE: ea doesnt open trade in last etapposted in Questions & Answers
What's not working? I assume it is your condition blocks, either way, put them to the side and test until you find 1 culprit to test and resolve.
-
RE: MACD linesposted in Questions & Answers
That is your main line I thins, but either way you only get the two options in MetaTrader
-
RE: [Consult] - I cound not reset to be 0 for last profitposted in Questions & Answers
Add a shared link to look at not pictures, set variable to 0 with a modify block, but make sure there is nothing that will change it back
-
RE: The signal cannot come down from the "loop" box.posted in Bug Reports
Still does not make any sense? Do you mean not able to drag block, do you mean not able to drag dot, or do you mean something else, link not pictures is much simpler for every one.
-
RE: The signal cannot come down from the "loop" box.posted in Bug Reports
Not sure what you mean, add a shred link to look at.
-
RE: MACD linesposted in Questions & Answers
In meta trader, the signal line is the signal line, the histogram is the main line.
-
RE: How to draw a line in the past candle.posted in Questions & Answers
Market property's highest/lowest price over x candles will give you the value, ID, price, or time, you can get this in most blocks.
-
RE: CURRENT CANDLE CROSSOVER PREVIOUS CANDLEposted in Questions & Answers
This wants to be candle close if you want it to be current price.

-
RE: How to draw a line in the past candle.posted in Questions & Answers
You need to know the exact reason for why that candle is selected. is it the highest/lowest price?
-
RE: enum yes or noposted in Questions & Answers
Most likely, although some words won't work. This is more than you need, but should show you how: https://fxdreema.com/shared/yeSPn6oYb
-
RE: ATR Stop Loss - Add ATR multiple above or below last two candles highs or lows?posted in Questions & Answers
Try adding this in adjust for buys, -iATR(NULL,0,14,0);
this for sells +iATR(NULL,0,14,0);
to multiply add *2 or something in between ) and ;
14 is the ATR period you want to use, NULL is for current symbol. 0 is the current time frame, put this in the stop loss box that's using the level you want to adjust -
RE: How to build martingale EA with TP shownposted in Questions & Answers
@RGoo, there is no 1st trade in that, and this is a lot more complicated way to complete Martingale trades.
