@bagheria You have done it in your link.
Posts made by jstap
-
RE: TP following % of balanceposted in Questions & Answers
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria On init tab, pass block, under modify block, this will make true when EA added to chart, your other conditions will sort as needed.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria No the constant you change manually in your inputs, a variable is changed by the EA, this is why having a constant and variable named the same doesn't work.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria If you need to switch trade on and off in inputs change the name, if not delete the constant.
-
RE: Trades stopped unless MT4 closed and opened againposted in Bug Reports
@ali-pahlawan You can get non repainting supertend, find on google and start from there.
-
RE: MT5 EA with custom indicator - compilations errorposted in Bug Reports
@vish Put the indicator on here and what you are trying to achieve.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria You can't have a variable named the same as a constant, will use the constant value above the variable value.
-
RE: How to Use Check Profit (Period of time) Block?posted in Questions & Answers
@bravoone l-andorrà is correct if your profit changes each day you will need a variable to set this, to use this for a fixed amount though you don't, the top time is all that is needed, this time is the start of the day to check profit from, to stop trading though once met you need a flag or a variable, this then needs reset before trading starts again.
-
RE: LotStep causing zero divide.posted in Questions & Answers
@mantadiver Answered this in your other post.
-
RE: Zero divide on restart due to LotStep being changed to zero . .posted in Bug Reports
@mantadiver If LotStep is your variable, (MarketInfo(Symbol(),MODE_LOTSTEP)); as code input in a modify variables block will ensure this value will be in variable and change for each broker.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria In this link I think you will see all you need, have a look and let me know if you don't get sothing.
-
RE: TP following % of balanceposted in Questions & Answers
Not sure don't see why it would delete upon open, it could be because some trees don't have a if/no trade block above, with no trade it would only allow conditions to happen once, may be completing conditions in a fraction of a second.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria You want to use indicator is visible, not appear, try this and let me know if your still having problems.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria Not sure put a shared link here and I'll have a look.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria Anything that's blue in the picture, there all doubles, and DAY_WIN_PERCENT is a constant.
-
RE: TP following % of balanceposted in Questions & Answers
@bagheria You can do it like this, remember to stop EA placing new trades when percent met.

-
RE: Too many inputs, how reduce them?posted in Questions & Answers
@bagheria Think this is what you are trying to do, I do it like this.

-
RE: PARTIAL CLOSEposted in Questions & Answers
@kestra Specified is just the chart symbol EA is on, any symbol will work on all, magic number will also control this, 0 is for manually placed.