Would there be someone kind enough to have a look at this (very) rough draft IB EFS.
The problem is that if a condition is met then it should do 3 things: 1. execute an IBBroker buy or sell; 2. show an alert and 3. sound off a wav (see lines 395-412).
I can not get the IBBroker buy/sell to execute. The alert is shown and the debugln says that the IB is executed.
I have a suspicion that it has to do with my wrong getBarState() == BARSTATE_NEWBAR routine.
Better leave all the other problems of this EFS else everything will have to be rewritten.
Thanking you in advance.
Andrei
The problem is that if a condition is met then it should do 3 things: 1. execute an IBBroker buy or sell; 2. show an alert and 3. sound off a wav (see lines 395-412).
I can not get the IBBroker buy/sell to execute. The alert is shown and the debugln says that the IB is executed.
I have a suspicion that it has to do with my wrong getBarState() == BARSTATE_NEWBAR routine.
Better leave all the other problems of this EFS else everything will have to be rewritten.
Thanking you in advance.
Andrei
Comment