Buying at VWAP bands
Forums › ProRealTime English forum › ProOrder support › Buying at VWAP bands
- This topic has 10 replies, 5 voices, and was last updated 2 weeks ago by
efahmy.
Viewing 11 posts - 1 through 11 (of 11 total)
-
-
03/04/2025 at 3:33 AM #244607
Could you please, check this code, I tested it its working but when I Auto it doesn’t
Long at lower VWAP band 31234567891011121314151617181920212223242526DEFPARAM CumulateOrders = FalseTIMEFRAME(2 Minute)//VWAP calculation//NoSunday = 0 //1=skip Sunday'sIF (BarIndex = 0) OR (OpenDay <> OpenDay[1]) THENSumVolPrice = 0SumVol = 0ENDIFIF Volume > 0 THENIF (OpenDayOfWeek <> 0) OR (OpenDayOfWeek = 0 AND Not NoSunday) THENSumVolPrice = SumVolPrice + (Volume * close)SumVol = SumVol + VolumeVWAP = SumVolPrice / SumVolENDIFENDIF// VWAP Lower Band 2 (Stronger Deviation)VWAPMAIN = VWAPVWAPLOWER2 = VWAPMAIN - (3 * STD[20](close))// Buy condition: Price touches VWAP Lower Band 2IF Low <= VWAPLOWER2 THENBUY 10 CONTRACT AT MARKETSET TARGET PROFIT 10ENDIFwork?!
03/04/2025 at 10:34 AM #24461703/04/2025 at 11:11 AM #24461803/04/2025 at 11:22 AM #24461903/04/2025 at 11:38 AM #24462003/04/2025 at 11:55 AM #24462103/04/2025 at 11:58 AM #24462303/17/2025 at 6:47 PM #244989Hi,
@efahmy, are you using VWAP on IG ?03/17/2025 at 8:53 PM #24499003/23/2025 at 7:38 AM #24514803/23/2025 at 7:40 AM #245149 -
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)
Find exclusive trading pro-tools on
Similar topics: