35aleks: how to write code in an EA to understand the rebound from level x.xx25
It all depends on how you understand the concept of "level rebound"...
The price touched, crossed to one side and immediately crossed back, The candlestick opened on one side of the level, then the price crossed the level and the candlestick closed on the same side as it opened, The previous candle opened on one side and closed on the other, and the current candle opened on the closing side of the previous candle and closed on the opening side of the previous candle... И... You can get the whole suitcase of such criteria... :)
You have to be more specific with your questions...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
how to write code in an EA to understand the rebound from level x.xx25
It all depends on how you understand the concept of "level rebound"...
The price touched, crossed to one side and immediately crossed back,
The candlestick opened on one side of the level, then the price crossed the level and the candlestick closed on the same side as it opened,
The previous candle opened on one side and closed on the other, and the current candle opened on the closing side of the previous candle and closed on the opening side of the previous candle...
И... You can get the whole suitcase of such criteria... :)
You have to be more specific with your questions...
Stoploss is needed for a martingale class EA. any option to put a stoploss on every order opened. I really need it would be grateful!
Stoploss is needed for a martingale class EA. any option to put a stoploss on every order opened. I would be very grateful!
I will say it again. There are a lot of variants to calculate. And most are here https://www.mql5.com/ru/code
More like this.
Thanks for the answers!
Hi all, Here's a question: there are four candles, I need to find the maximum and minimum price of these candles together. Thank you.
https://docs.mql4.com/ru/series/iLowest
https://docs.mql4.com/ru/series/iHighestIf the candlesticks are not in a row, then MathMax() and MathMin() in pairs
https://docs.mql4.com/ru/math/MathMax
https://docs.mql4.com/ru/math/MathMin
for these two :.
GoldenProfit_hgs.mq4 (22.16 KB)
1_1.mq4 (8.98 KB)
Thank you all for ignoring the question! Figured it out on my own. The line for Sell had no time to set and returned a value of NULL.
That's what was missing!!!
Does your martini code need to be attached? Or is this a telepathic forum?
Because these are double numbers, they have a limited mantissa length and therefore accuracy. Try this: NormalizeDouble(0.25+(-0.25),2)