Forum

Custom indicator doesn't show data for all bars.

On my indicator that I am making data is only displayed for the most recent 50% or so (it varies) bars and then after that it does not display anymore data. Here's a picture showing what I mean https://imgur.com/a/NquoQLo . property indicator_separate_window #property indicator_buffers 1 #property

Naming an array after variables

I am trying to name an array after some variables, something like this string symbol = "AUDCAD" ; string type = "BUY" ; double symbol + type[ ] ; ArrayResize ( AUDCADBUY , 1 ) ; AUDCADBUY[ 0 ] = 1 ; This doesn't work though, and I haven't been able to find anything anywhere to point me in the right

Code to prematurely end execution of script?

Hi, I am making an expert advisor that runs on every tick . I am trying to find a way to end the execution of the script prematurely when a condition is met early on in the script, and then the script won't execute again until the next tick. I know I could just put the entire code after the