Can someone show me an example of what this would look like:
I want an indicator that simply returns a 1 if the conditions are met, and a zero if they are not met. (Boolian) based on the script that comes up when i am trying to make it, it looks like I can only graph stuff.
Can someone post the code for a custom indicator that goes something like this:
// if the EMA based on 5 minute bars over 9 periods is less than the current price
if ( EMA(9) < Current price )
return(true);
else
return(false);
If i did want to graph this, it would just graph a zero or a 1, right? I'm mainly planning to use this in the market analyzer.
Could you post what the entire ninja script would look like for what i described above (EMA 9 period based on 5 minute bars)
Comment