NexusFi: Find Your Edge


Home Menu

 





Need suggestion for auto strategy


Discussion in NinjaTrader

Updated
    1. trending_up 913 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Need suggestion for auto strategy

  #1 (permalink)
lightsun47
Toronto, Canada
 
Posts: 357 since May 2018
Thanks Given: 492
Thanks Received: 296

Hello,

I need a suggestion as what to do here regarding my strategy.

On one day, one setting works, the next day, the opposite settings work. I am talking about Fast and Slow parameters.

So to avoid 'gambling' the values, I put both strategies (one opposite of each other) at the open to test which one turns green (because obviously the other one turns red) and keep the green one running because that's how the market algos are for that particular day.

Anyone else can have any other recommendation regarding this? I don't have to change any values because they work fine, but the only problem I have is to determine which values can work for any selected day.

Thank you.

Sent using the NexusFi mobile app

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
What broker to use for trading palladium futures
Commodities
Quant vue
Trading Reviews and Vendors
Trade idea based off three indicators.
Traders Hideout
 
  #2 (permalink)
 
chipwitch's Avatar
 chipwitch 
Nashville, TN
 
Experience: Beginner
Platform: NinjaTrader
Broker: NinjaTrader, Continuum Data
Trading: MES for now... baby steps
Posts: 322 since Feb 2022
Thanks Given: 230
Thanks Received: 631

Without more specifics, I can only offer some general advice. I would try to see if I could find a correlating factor that makes one better than the other. Maybe the day's cumulative data or the trend direction and strength. Maybe it's volatility (ATR). Are you getting stopped out or are you picking the wrong direction?

I wrote a little strategy that was based simply on the recognition of a pattern. My hypothesis was, when this pattern occurs, go long.... it produced unexpectedly bad results when back testing. Just for kicks I reversed the order, the opposite way I would have intuited. That returned an $8000 profit for the same one day trading period. I ran it back two weeks. The results were still good, but not proportional to that first day. Then, I noticed that some of the patterns weren't being executed properly... like at all! Further investigation revealed that my algo had an error in it that was executing somewhat random orders. Once I fixed the error, I improved my consistency, but it was bad EVERY day now. LOL. My point is that just because an algo is successful over the course of your data pool doesn't mean that it's based on any kind of causal event. The fact that you have two almost identical algos with just a few parameter changes leads me to believe that your algo may not be based on sound causal events?

That being said, some algos do better during up trend days. Some do better during down trends. Some do better during consolidating markets. There is absolutely no reason to not include them all in a single algo that only trades one of the strategies after having identified which market you're currently in. Just be careful... whatever the markets personality, it will change at some point (and may be inconsistent throughout the day) so I like to include some code that halts executing orders if I've had some number of consecutive losses or I'm down a certain amount. Then, it continues to monitor the market to see if there's a change (ex. trending up is now consolidating) before re-entering orders.

Good luck

Reply With Quote
Thanked by:
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Different days are different regimes.
A day can be trending ( going from A to B )
or a day can range bound.

In a trending day a swing algorithm will work fine, once you are in the trade, it will run enough to make a profit.
In a range bound day a mean reversion algorithm will be more successful.

It is perfectly normal that not all strategies work on all days.
the trick is to recognize the type of trading day that is coming or that is evolving into
and then drive the right strategy for that type of market.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on March 3, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts