@william-1 Your welcome, if you want this in a comment so you can see what's happening use a bool variable.
Posts made by jstap
-
RE: RSI condition to close tradeposted in Questions & Answers
-
RE: Draw Objects on Chart during Visual backtest?posted in Questions & Answers
@mantadiver In the orange chart & objects you have many options, if not working try adding a pass block above.
-
RE: MA cross ea not working. Helpposted in Questions & Answers
@lambarda What is this trying to do?

If you want the current price on the chart, use market properties.
-
RE: Enable indicator constants so I can optimize.posted in Questions & Answers
@ontradingx Don't think you can mate, you can add but it has no buffers, FX used the buffers to do something.
-
RE: Bucket of trades on init not firingposted in Questions & Answers
@general-melchett I am unsure but possibly correct your block id's.
-
RE: Define previous swing high/lowposted in Questions & Answers
@prabhu7418 It is just using the same logic to store the price as drawing the line was, then drawing the line after saving so the variable is correct first, by moving the variable to previous above saving the current, both values are stored.
-
RE: RSI condition to close tradeposted in Questions & Answers
@william-1 Use a flag under your conditions, so when RSI X> 90 the flag is set to true, then when RSI X< 70 set flag back to false. above the close block check if flag = true so when RSI X< 70 trades are closed.
-
RE: Modify lot size on multiple blocks at onceposted in Questions & Answers
@iagnew Use a variable instead of a constant, whatever condition you set to change this, will change the used lot.
-
RE: Support/Resistance EA example practiceposted in Questions & Answers
@uriel-0 I don't think anyone can do this, everyone classes support/resistance differently, find a good indicator or describe what conditions fit your definition.
-
RE: how to creat US30 sculping trading robot?posted in Questions & Answers
@biztet I agree with Tipsy, any or all those indicators can be used for what you want, but you need to decided what each one is doing to give you your signals.
-
RE: Define previous swing high/lowposted in Questions & Answers
@prabhu7418 What I did above is putting the swing low/high into variables, on the next it saves the last into the previous, this is the same levels as your lines? What is it that it's not doing? it worked for me when I back tested, it puts the numbers into a comment in the top left, use your cross hair and check you will either see it matches or work out how to have the numbers you wandt recorded.
-
RE: Indicator under the trend ?posted in Questions & Answers
@piotras10000 This is likely but it depends on the TF and asset.
-
RE: Define previous swing high/lowposted in Questions & Answers
@tipsywisdom True but the guy already has what he is classing as a swing high/low.
-
RE: help Support and resistance based on shvedsnrposted in Questions & Answers
@frank-2 Does this work after something else has created a trade with magic no 6967? If not change the if trade blocks to no trade, or put a usable number.
-
RE: Convert one indicator mql4 to mql5. Plsposted in Questions & Answers
@dreema-2 Don't think anyone here can do that, as you have the source code you can likely find someone to de it.
-
RE: Indicator under the trend ?posted in Questions & Answers
@piotras10000 This depends on the asset and timeframe but, will range from a few timesday to once every few months.
-
RE: Define previous swing high/lowposted in Questions & Answers
@prabhu7418 I would do it like this:
-
RE: check if no positionposted in Questions & Answers
@smartcity-0 There is a block called no position nearby, I have never used but should do as you want.
-
RE: help Support and resistance based on shvedsnrposted in Questions & Answers
@frank-2 If this is a FXDreema project add a shared link, if not I drought you'll get assistance here.