
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
Hello all
I used to write in pine script. But I wanna translate the code below into MetaQuote.
In Pine Script, I can use var1[1] to retrieve the var1 value of the previous bar.
The code below works in pine script.
But it seems [ ] in MetaQuote can only be used as array.
I tried using iCustom() but it only works with a complete custom indi.
I have kept searching everywhere about this question tried keywords like "shift value" "bars back" "previous bar" for days but still got no clue about it.
So could anyone help?Many thanks