Forum

Help Needed. Errors when compiling EA.

Errors: 'TimeHour' - undeclared identifier Line 19 Column 28 'currentTime' - some operator expected Line 19 Column 37 'OP_BUY' - undeclared identifier Line 31 Column 46 'OrderSend' - wrong parameters count Line 31 Column 27 'OP_BUY' - undeclared identifier Line 50 Column 54 'OrderSend' - wrong

Help modify indicator from Plotting Daily Lines to Plotting Hourly Lines

#property indicator_chart_window #property indicator_buffers 3 // Increase buffers to 3 #property indicator_plots 3 // Increase plots to 3 #property indicator_label1 "Daily open line" #property indicator_label2 "Above Open line" #property indicator_label3 "Below Open line" #property

I need an indicator that plots 3 lines

I need an indicator that plots 3 lines: a horizontal line from daily open to close, another line certain number of points above the daily open & another line certain number of points below the daily open. Be able to set number of days which to draw lines. Simple. Be able to set number of points to

Error in my code

The EA is supposed to buy when the previous candle was bullish and sell if the previous candle was bearish. input double takeProfitPips = 100 ; // Take Profit (in pips) input double stopLossPips = 100 ; // Take Profit (in pips) input double lot = 0.1 ; datetime LastActionTime = 0 ;