[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 955
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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)