-
Don't double post! You already had this thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum (2017) -
You must define what PriceAction is.
-
MovingAverageValue200 > PriceAction[i])
An array of doubles.
-
PriceAction[1].Close[1] <= PriceAction[2].Open[2]
An array of a structure.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem -
-
order = OrderSend(NULL, OP_SELL, 0.01, PriceAction[0], NULL, 20, 30, "THIS IS A SELL", 1, 0, clrRed);
Be careful with NULL.
- On MT4, you can use NULL in place of _Symbol only in those calls that the documentation specially says you can. iHigh does, iCustom does, MarketInfo does not, OrderSend does not.
- Don't use NULL (except for pointers where you explicitly check for it.) Use _Symbol and _Period, that is minimalist as possible and more efficient.
- Zero is the same as PERIOD_CURRENT which means _Period. Don't hard code numbers.
- MT4: No need for a function call with iHigh(NULL,0,s) just use the predefined arrays, i.e. High[].
- Cloud Protector Bug? - MQL4 programming forum (2020.07.25)

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
I have no idea how to fix this please help im getting these errors
'close' - some operator expected
'PriceAction' - some operator expected
'(' - unbalanced left parenthesis
I tried a few different ways to change the code and this is the cleanness I could get the code to be.