EasyLanguage VWAP code help (Page 2) - Open E Cry | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > Open E Cry

EasyLanguage VWAP code help
Started:March 26th, 2012 (07:40 PM) by MilesT Views / Replies:5,214 / 12
Last Reply:April 18th, 2014 (03:01 PM) Attachments:1

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

EasyLanguage VWAP code help

Old February 16th, 2014, 04:59 AM   #11 (permalink)
Trading Apprentice
Futures Experience: None
Platform: Amibroker/MultiCharts8/MT4/NT/SC
Broker/Data: compositedge investment pvt. ltd/RKSV/GDFL
Favorite Futures: Futures
Posts: 22 since Dec 2013
Thanks: 10 given, 3 received


i got floating point invalid operation.
can you re-fix it?


Reply With Quote

Old February 16th, 2014, 05:49 AM   #12 (permalink)
 Vendor: abctradinggroup.com 
Hamburg Germany
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,109 since Apr 2013
Thanks: 188 given, 624 received


this usually happens when the code tries to divide by 0. You can fix this by adding checks to each division making sure the divisor is not zero. For example there are several division done by Totalvolume.
if Totalvolume <> 0 then ...
will fix that in this case.


csayantan View Post

i got floating point invalid operation.
can you re-fix it?


Reply With Quote

Old April 18th, 2014, 03:01 PM   #13 (permalink)
Market Wizard
Austin, TX
Futures Experience: Intermediate
Platform: Open E Cry / Ninja Trader
Favorite Futures: NQ, ES, SPY, QQQ
tturner86's Avatar
Posts: 5,309 since Sep 2013
Thanks: 9,379 given, 10,273 received
Forum Reputation: Legendary

Just found this easy code and was able to make it work in OEC.


if date > date[1] then begin
PriceW = 0;
ShareW = 0;

value1= (open+high+low+close)/4;


if time > time_start then begin
PriceW = pricew + value1*bb;
ShareW = ShareW + bb;
vwap = PriceW / ShareW;


Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > Open E Cry > EasyLanguage VWAP code help

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using VWAP in your trading Big Mike The Elite Circle 173 January 25th, 2016 09:22 PM
VWAP bands crazybears NinjaTrader 102 March 6th, 2012 04:33 PM
Intrabar VWAP Eubie NinjaTrader Programming 6 February 3rd, 2012 05:12 PM
BMT CCI Pivot Zone easylanguage code for Market Delta? kienow Investor/RT 1 February 16th, 2011 02:37 PM
VWAP question Todd NinjaTrader Programming 3 March 14th, 2010 06:13 PM

All times are GMT -4. The time now is 12:23 AM.

Copyright © 2016 by futures.io. All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-26 in 0.06 seconds with 20 queries on phoenix via your IP