Could you please, check this code, I tested it its working but when I Auto it doesn’t
DEFPARAM CumulateOrders = False
TIMEFRAME(2 Minute)
//VWAP calculation
//
NoSunday = 0 //1=skip Sunday's
IF (BarIndex = 0) OR (OpenDay <> OpenDay[1]) THEN
SumVolPrice = 0
SumVol = 0
ENDIF
IF Volume > 0 THEN
IF (OpenDayOfWeek <> 0) OR (OpenDayOfWeek = 0 AND Not NoSunday) THEN
SumVolPrice = SumVolPrice + (Volume * close)
SumVol = SumVol + Volume
VWAP = SumVolPrice / SumVol
ENDIF
ENDIF
// VWAP Lower Band 2 (Stronger Deviation)
VWAPMAIN = VWAP
VWAPLOWER2 = VWAPMAIN - (3 * STD[20](close))
// Buy condition: Price touches VWAP Lower Band 2
IF Low <= VWAPLOWER2 THEN
BUY 10 CONTRACT AT MARKET
SET TARGET PROFIT 10
ENDIF
work?!
JSParticipant
Senior
Hi,
What kind of error message do you get when you use the system with autotrading…?
No error, but the condition is meet it does not trigger
JSParticipant
Senior
In what kind of market do you use this system?
Your System (on NAS at M6 TF and with optimised variables) triggered / opened a Long trade for me within 36 mins of starting the Algo … see attached.
JSParticipant
Senior
I don’t see anything special about it, backtest is going well, strange…
Technical support questions under “Help”…
Hi,
@efahmy, are you using VWAP on IG ?
i get some strange things on IG today…
all conditions meet but no order on real. no rejected orders, the bot still running.
perhaps you are facing the same problem
Yes, I’m using it in trading using alerts trading, but failed to use it in Auto trading.