bool switch... simple.. - EasyLanguage Programming | futures io social day trading
futures io futures trading


bool switch... simple..
Updated: Views / Replies:3,260 / 37
Created: by toddma Attachments:10

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
 10  
 
Thread Tools Search this Thread
 

bool switch... simple..

  #11 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

Agreed
Your KeltnerChannelLower is the same as mine. I am using MultiCharts.

Reply With Quote
 
  #12 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received

Rgr.

All that leaves is to double check you've parameterized the Keltner indicator on the chart and the function in the signal the same way....

Reply With Quote
 
  #13 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received


I use that keltner function in other signals and plot the keltner indicator separately and they always seem to match up. I don't imagine that is the issue. I think I did even try taking it out and using a different requirement for that part. I think I tried RSI, if RSI was below a certain level then it was supposed to turn the TradeClose bool to True. Same issue though.

Reply With Quote
 
  #14 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received

Alrighty then. When assumption checking fails time to put on our thinking caps.

Can you post 2 things:

1. a screenshot of the entire chart containing the offending trade compressed so that the image contains both the entry and the exit if possible (but not so compressed numbers on the axes are not discernible), but of main interest is the exit, the time axis at the bottom and price axis at the right; and,

2. the instrument your're working with?

I love a puzzle.

Reply With Quote
 
  #15 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

Definitely. Thanks a lot!

Reply With Quote
 
  #16 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

The second chart is further back - you can see another 2 instances where it should have triggered the exit.
One around the beginning of the 30th and one on the 25th. The asset is AUDJPY and the timeframe was a 21 minute chart.

*The entry related to the exit we were looking at is on the 29th.

Attached Thumbnails
bool switch... simple..-111.gif   bool switch... simple..-2222.gif  
Reply With Quote
 
  #17 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received

Aha.

The first thing to notice is that the trade spanned not one but many session boundaries which (given my experience with Interactive Brokers and NT) probably means all bets are off for automated strategies running on platforms designed for retail traders.

I'm a day trader (at least don't leave strategies running overnight because of my experience with IB and NT ) and still learning MC so would have to discover if MC has issues similar to NT, assuming we can rule out IB as the common factor.

In any event clearly it seems the trade should have exited around 4 AM on the 30th of October, soon after the trade was entered (in swing trading terms).

I can understand your confusion but I'm curious why it exited at all since it makes no sense to me unless it was a live trade--in which case it's my experience 3rd party retail platforms tend to fall apart.

Can you confirm it exited automatically (confirm you did not kill it to make the exit) and that this is a backtesting result rather than an actual live trade?

While I assume it's a backtest, if a live trade for the record can you confirm 2 things:

1. whether you tinkered with the signal or the chart or even turned your computer off and back on between Oct 29 (entry) and Dec 8 (exit)?
2. whether your broker is IB?

Tough puzzle. I already know your answer is that it was a backtest

At this point should probably post the....

Disclaimer

All my tests have been on bar intervals likely to give an intraday exit rather than a 21 minute bar interval--the assumption I missed-- and this is probably the key. Should confess I may not be able to help you with this if the strat runs past session close and if so there are 2 choices: close at end of session or wait for someone better informed than I (your future self perhaps!) to parachute in.

If it's a backtest it may be a bug in MC, in which case have to ask are you running 8 or 8.5 (beta). NT at least can handle backtests (screws up in real time). Otherwise I've learned not to trust a retail broker/platform pair for strategies overnight exactly because of insoluble swing trade issues of this sort :-/

Edited to add: That's one reason I use IB's interface (TWS) for swing trades.

Reply With Quote
 
  #18 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

Hmmm interesting..

This was a backtest in MC using IQFeed data. If/when trading live I use MC with IB as my data and broker. I haven't had any issues with multi-day trades in a live environment with MC and IB though.

I just took a look back through the data and found a situation where the entry, the exit trigger (bool) was triggered and the price retraced to the moving average all within the same day and the trade did not exit as it should have (I will post that below).

Yeah it's really quite confusing to me why it exits when it does - it seems to ignore other situations that seem to be equivalent in all respects...

Thanks again for your help on this - maybe I should just try approaching this from a different angle?

Attached Thumbnails
bool switch... simple..-sameday.gif  
Reply With Quote
 
  #19 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received

I'm not gone yet...just out of quick solutions

Keep us posted.

Edited to add: perhaps my last words didn't express the passion I feel for a puzzle I can't solve


Last edited by bnichols; December 11th, 2012 at 01:10 PM.
Reply With Quote
 
  #20 (permalink)
Elite Member
Dartmouth NS
 
Futures Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker/Data: IB / IQFeed / Kids
Favorite Futures: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 459 received


For the record here is what I'm seeing (in this case a 21 minute AUD.JPY chart with the signal applied, data courtesy of IB). The entry is slightly different presumably because of the different feed, given the signal MAs (cyan and magenta) are intertwined around the point of entry, but the exit is as expected :-/

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

Reply With Quote

Reply



futures io > > > > > bool switch... simple..

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
How often do you switch brokers? Big Mike Reviews of Brokers and Data Feeds 8 August 28th, 2012 03:17 PM
Switch Statement DonStar AmiBroker 7 August 20th, 2012 04:15 PM
Filter switch seeker NinjaTrader Programming 9 July 30th, 2012 07:22 AM
Help : Method + Switch wkmetal NinjaTrader Programming 3 October 25th, 2010 05:51 AM
CalculateOnBarClose as a bool or as a simulation within OnBarUpdate chapter SARdynamite NinjaTrader Programming 5 July 5th, 2010 02:02 AM


All times are GMT -4. The time now is 03:09 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-16 in 0.13 seconds with 40 queries on phoenix via your IP 54.163.209.109