How to develop a short time frame forex bot - futures io
futures io futures trading



How to develop a short time frame forex bot


Discussion in Traders Hideout

Updated by bnichols
    1. trending_up 2,683 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 5 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

How to develop a short time frame forex bot

(login for full post details)
  #1 (permalink)
Dartmouth NS
 
Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker: IB / IQFeed / Kids
Trading: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 460 received

1st in an installment, how to migrate your long term (days, months, years) Forex strategy to short term (minutes).

Earlier this evening I was trying to explain NT auto-trading to my son who has never traded. I'm a get-rich-slowly sort (100% / month on paper) and he's young, the get-rich-fast 30-something sort with no platform experience.

We threw up the canned SimpleMAStrategy and backtested on 6 months spot Forex data in NT7.

It performed badly, as expected, so I showed him how to tweak it by unlocking the code to establish his own test bed, make changes, backtest again, and keep backtesting manually until he's ready to optimize.

To make a long story short, I've never been profitable fooling around with SimpleMA or trying to trade the 1 minute spot Forex market by bot, but to my surprise tonight SimpleMA optimized to countertrend trading on 1 minute data, and kept optimizing the same way after repeated tests.

This means apparently the canned strategy is desperate to reverse the roles of fast and slow SMA for 1 minute spot currency data at the moment. Specifically it wants to replace the slow SMA with the bar close and turn the fast SMA into the slow SMA, essentially making the fast crossover of the close the opposite signal (e.g., buy instead of sell and vice versa).

We've all seen this from time to time, but I've never seen anything so robust in short time frame auto-trading.

The bottom line appears to be, SMA in a bot works over the long haul if price action is random (ranging) if you trade counter trend, which it does most of the time, and fails badly if price action begins to trend, which it does 20-30% of the time. No surprises there.

The object of this thread therefore is to decide whether this result is a flash in the pan or otherwise how to determine the onset of trending in 1 minute spot Forex data. I'll share the strategy in the next post, but in the meantime welcome any posts from folks dealing with the same issue.

As usual constructive contributors will own the final bot if it turns out to be profitable, and excuse me it turns out I've badly miscalculated

Visit my futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
Looking freelancer for MT4 Indicator
Platforms and Indicators
OPEN_CLOSE_DOTS
ThinkOrSwim
Stacked Imbalances.
Sierra Chart
Times and Sales more data to be displayed
TradeStation
GBP/ARS Pair
Traders Hideout
 
 
(login for full post details)
  #3 (permalink)
Malaysia
 
Experience: Beginner
Platform: Multichart DT
Broker: MB Trading
Trading: Fx
 
torroray's Avatar
 
Posts: 273 since Nov 2009
Thanks: 52 given, 60 received


Hi,

can you post a screenshot

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Dartmouth NS
 
Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker: IB / IQFeed / Kids
Trading: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 460 received

Will do as soon as I re-stabilize NT7 .... it looks like the infamous "Failed to execute DB job 'ExecutionUpdateJob': ObjectSpace: Entity Object was not Updated - NinjaTrader.Cbi.Execution" error has persisted to Version 7.0.1000.2

Edited to add: this issue started a few hours after I started forward sim testing the short time frame strategy on the EUR.CAD pair while another strategy was running live on same instrument (the strategy that feeds & clothes me :-/). Given the problem NT has with virus checkers I'm getting the feeling NT may have a bug in its file handler(s) (related to locking? race condition?), including the database.

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #5 (permalink)
Malaysia
 
Experience: Beginner
Platform: Multichart DT
Broker: MB Trading
Trading: Fx
 
torroray's Avatar
 
Posts: 273 since Nov 2009
Thanks: 52 given, 60 received

Hi,

These small problems still haunting NT.

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Dartmouth NS
 
Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker: IB / IQFeed / Kids
Trading: Forex, stocks
 
bnichols's Avatar
 
Posts: 638 since Feb 2010
Thanks: 64 given, 460 received

Just an interim installment. With the original post I meant to show one way strategy backtesting can lie. The idea was to share the solution, with the expectation readers would be wiser.

I already knew the best optimized (apparently profitable) strategy would fail in real-life short time frame spot Forex trading mostly due to spread--it's how Forex brokers make money, after all .

I couldn't continue the chapter without knowing the next chapter--what everybody want's to know--how to make a short time frame Forex bot profitable.

At the time I thought it would be simple. Turns out not to be

You have to know how to trade your instrument in your time frame profitably to program a bot.

Since the first boastful post I've been actively discretionary trading short term spot Forex "with extreme prejudice" to learn how and am only now approaching profitability. It will be a while before I can educate a bot.

Will keep you posted.

Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Traders Hideout > How to develop a short time frame forex bot


April 10, 2011


Upcoming Webinars and Events
     



Copyright © 2020 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