| / | Forum |
|
tertius
2009.10.17 18:42
I have looked around, but cannot find quite the same problem elsewhere. If it does exist, please point me there... I am attempting to create a custom indicator which will return 3 possible values in a histogram: 1 - when I should be long 0 - when I should be out -1 - when I should be short. I have started this, but cannot get a value printed/painted to the indicator window... But as soon as i write a Close[i] to buffer, then it works... I do not get this. Here is my code. Comment out the //val = Close[i]; line to see it working #property indicator_separate_window double Buffer1[]; int init() return(0);
i=Bars-counted_bars-1; return(0); |