NexusFi: Find Your Edge


Home Menu

 





How to optimize your strategy with the Sortino ratio on Tradestation or Multucharts?


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two ABCTG with 1 posts (0 thanks)
    3. looks_3 skan with 1 posts (0 thanks)
    4. looks_4 SMCJB with 1 posts (0 thanks)
    1. trending_up 1,424 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

How to optimize your strategy with the Sortino ratio on Tradestation or Multucharts?

  #1 (permalink)
skan
spain
 
Posts: 11 since Jun 2010
Thanks Given: 0
Thanks Received: 0

Does any one use the Sortino ratio or the Omega ratio for backtesting optimization in Multicharts or Tradestation?
Many years ago I asked on MC forums how to do it and they replied it wasn't possible because at that moment MC didn't allow to use per bar information, just per trade information.

Now I would like to try again in the trading world. And it seems that MC allows to use the Sortino ratio with SetCustomFitnessValue() and the proper PowerLanguage functions.
But I don't know what are thoses functions.

Could you tell me how to do it, please? Or do you have it already implemented?
I think I just need the accumulated profit calculated at every bar.
OpenPositionProfit provides the profit o a bar basis but only for the last open trade.

I also need the number (position) of the current bar.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Footprint for strategy Builder
NinjaTrader
Better Renko Gaps
The Elite Circle
Negative Balance Protection
Brokers
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
35 thanks
Spoo-nalysis ES e-mini futures S&P 500
16 thanks
GFIs1 1 DAX trade per day journal
15 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
Trading with Intuition
14 thanks
  #3 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT and Stellar
Broker: Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,049 since Dec 2013
Thanks Given: 4,391
Thanks Received: 10,208


Perform the calculation yourself and write the results to a csv file. The just sort the csv.

Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 484
Thanks Received: 1,629

skan,

you are correct in Multicharts you can use a Custom Fitness Value, but the logic for that will have to be coded. You can take a look at this link that uses the built-in Sharpe Ratio code and you can probably use this as a basis for your work:

https://www.multicharts.com/discussion/viewtopic.php?f=1&t=12625&p=64815

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on October 31, 2019


© 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