Referencing Data(2) Bar on the 1M chart - Traders Hideout | futures io social day trading
futures io futures trading


Referencing Data(2) Bar on the 1M chart
Updated: Views / Replies:454 / 5
Created: by fiverr Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Referencing Data(2) Bar on the 1M chart

  #1 (permalink)
Elite Member
Calgary
 
Futures Experience: None
Platform: TradeStation, MT4
Favorite Futures: ES, Stocks
 
Posts: 73 since Aug 2015
Thanks: 4 given, 10 received

Referencing Data(2) Bar on the 1M chart

Hi there,

I have the following codes that run on the 30M chart; however, I would like to attach my strategy to the 1M chart but still reference these codes to the 30M chart. Your inputs are greatly appreciated.

 
Code
if TIME >= FinalExit then
Begin
   if MarketPosition =-1 then BUYTOCOVER ("Buy to Exit") NumberOfContracts CONTRACT NEXT BAR Market;
   if MarketPosition = 1 then SELL ("Sell to Exit") NumberOfContracts CONTRACT NEXT BAR MARKET ;
End ;


if TIME > EndTime OR TIME < StartTime then
Begin
   BUYTOCOVER NumberOfContracts CONTRACT THIS BAR CLOSE ;
   SELL NumberOfContracts CONTRACT THIS BAR CLOSE ;
End ;

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,534 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary


fiverr,

can you elaborate a bit more what you mean with "still reference these codes to the 30M chart"?
Trades can only be executed on Data1 (at least with legacy EasyLanguage). In case you are looking to execute trades based of Data2 data you can use variables that you evaluate on Data2 (something like setting a boolean to true when the condition is present) and then place trades on Data1 when this variable has the correct state.

Regards,

ABCTG

Reply With Quote
 
  #4 (permalink)
Elite Member
Calgary
 
Futures Experience: None
Platform: TradeStation, MT4
Favorite Futures: ES, Stocks
 
Posts: 73 since Aug 2015
Thanks: 4 given, 10 received


ABCTG View Post
fiverr,

can you elaborate a bit more what you mean with "still reference these codes to the 30M chart"?
Trades can only be executed on Data1 (at least with legacy EasyLanguage). In case you are looking to execute trades based of Data2 data you can use variables that you evaluate on Data2 (something like setting a boolean to true when the condition is present) and then place trades on Data1 when this variable has the correct state.

Regards,

ABCTG

ABCTG,

I believe that I found the solution. Please let me know your thoughts.

 
Code
time_2 =    TIME of data(2);
if time_2 >= FinalExit then
Begin
   if MarketPosition =-1 then BUYTOCOVER ("Buy to Exit") NumberOfContracts CONTRACT NEXT BAR Market;
   if MarketPosition = 1 then SELL ("Sell to Exit") NumberOfContracts CONTRACT NEXT BAR MARKET ;
End ;
The reason why I wanted to write my code on the 1M chart and reference the logic on 15M or 30M so that I can identify the exact minute where I entered or exited the trade. Before this, the backtesting is not very informative since I can not compare the live results with the backtesting results to the actual minute by minute.

Reply With Quote
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,534 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

fiverr,

while your code works, I am not sure that you accomplish what you have in mind. But this is something you can probably tell best yourself when you see the backtest.

Regards,

ABCTG

Reply With Quote
 
  #6 (permalink)
Elite Member
Calgary
 
Futures Experience: None
Platform: TradeStation, MT4
Favorite Futures: ES, Stocks
 
Posts: 73 since Aug 2015
Thanks: 4 given, 10 received


ABCTG View Post
fiverr,

while your code works, I am not sure that you accomplish what you have in mind. But this is something you can probably tell best yourself when you see the backtest.

Regards,

ABCTG

ABC,

Here is what I am trying to accomplish so let me know your thoughts. See below backtesting results in MC.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


As you can see, the original code is referencing 30M, and I am using 1M bar magnifier to obtain the backtesting results. When I look at my backtesting results (list of trades), the resolution step is 30 minutes. So I don't know whether the trade entered at 9:01AM or 9:28AM.

When I use 1M code to reference 30M logics, I obtain a 1-minute resolution. See below.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


As you can see above, I know exactly that the trade entered at 9:03M and exited at 9:13AM.

Please let me know if this makes sense or that I am trying to reinvent the wheel.

Reply With Quote

Reply



futures io > > > Referencing Data(2) Bar on the 1M chart

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bar by Bar Cumulative Time and Sales Indicator - Sierra Chart waves1000 Sierra Chart 1 December 23rd, 2015 06:29 PM
referencing from another timeframe chart shanemcdonald28 MultiCharts 2 August 30th, 2014 02:04 PM
EUR/XXX Spot - OHLC data (Day/Week/Month/1m/5m/60m/240m) rewex The Elite Circle 1 June 25th, 2013 12:23 PM
What are Best indicators used on 1M data gunjanb2b Options on Futures 4 October 17th, 2012 05:06 PM
Chart Bar OHLC data DOESNT match with the value in data box Koepisch NinjaTrader 4 May 12th, 2012 03:52 AM


All times are GMT -4. The time now is 06:44 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-12-18 in 0.11 seconds with 20 queries on phoenix via your IP 54.221.93.187