Click here to Login





                                                   timeframe open Bar

  0

0
Ruslan
2016-03-15 08:13:46


a1=90;

t=ref(TimeframeGetSeries1("BRENT", a1*60,open, LastData),(-a1/5)+1);
Plot(t, "T57", colorblue, chartLine, StyleSymbolNone);


this code result - get open price of formed Time Series at the first Bar of new hour or (first 5 min Bar on 5min timeframe)
or from 35 min Bar on 5min timeframe
how I can get open price at end of hour or 30 min of hour

please help with code



QuantShare
2016-03-16 05:05:49

  0

If you are using "TimeframeGetSeries1" to create 1-hour bars then you will get the "open" price of each 1-hour bar.

I am not sure what exactly you need?

Try first debugging your code without the "ref".



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Return per Bar Stop - Money Management Strategy
Simple pattern detection rules using close and open prices
Is New Bar
Random Value for Each Trading Bar
IBS - Internal Bar Strength

How-to Lessons
How to display the bar index of a stock on a chart
How to change volume bar colors when the price closes down
How to create volume bar charts
How to display notes/commentaries on a chart
How to create and trade a Neural Network model

Related Forum Threads
MMScript - Exit at the close of a bar
close next bar with intraday bars
Dynamic Checklist to Compare Open to yesterday's Close
Ability to open multiple watchlist windows
Intraday Variable for 'Entry Bar' and 'First Bar Of Day'

Blog Posts
Different periodicities and chart bar types in QuantShare Trading...
Technical Analysis Using Multiple Timeframes
Technical Analysis Using Multiple Timeframes - Second Part
How to Create a Custom Real-Time Table using QS Trading Software
Backtesting All Candlestick Patterns in 10 Minutes









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.