could someone please help fix... i am not a coder, just a poser (but i am trying)
i just want to call the previous bar of the 2 indicators and store them as output buffers.
errors i am getting relate to OnCalculate() and SetIndexBuffer. i think i am missing some code
thanks
i just want to call the previous bar of the 2 indicators and store them as output buffers.
errors i am getting relate to OnCalculate() and SetIndexBuffer. i think i am missing some code
thanks
Inserted Code
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 White
#property indicator_color2 White
string market;
double result1,result2;
void OnInit() {
SetIndexBuffer(0, result1);
SetIndexBuffer(1, result2);
market = Symbol();
}
void OnTick(){
result1 = iCustom(Symbol(),0,"indi1.mq4",0,1); //line0, shift=1
result2 = iCustom(Symbol(),0,"indi2.mq4",1,1); //line1, shift=1
}