Forum

'Hour' - wrong parameters count

I am attempting to restrict the hours during which trading can occur, but I have not been successful with my attempts so far. I would appreciate any input or suggestions on how to accomplish this. bool IsTradeTime() { datetime now = TimeCurrent (); int hour = Hour(now);

Arrow for consecutive three candles - indicator

Trying to place an arrow/text if there is three consecutive bearish or bullish candles formed. Tried a couple of options, but unable to handle Arrow's position. Either too many arrows got painted or the location was at the wrong place. Also tried place text but no luck. #property copyright ""

issue with checking result of last two orders from the same Symbol

The following code works if it's attached to only a single pair, but if the EA attached to multiple pairs, it also counts the result of cross pair and results wrong alert. The idea of the following code is to decide if the attached pair has the last two trade ends positively . It should not

Open new charts and apply template using script not working

As such no error but not able to launch new charts via following script. already created and tested the template. Script should open new charts and apply the associated template. template already has required ea and indicators. void OnStart () { long iChartID_1 = ChartOpen (