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 skan with 1 posts (0 thanks)
    2. looks_two SMCJB with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (0 thanks)
    1. trending_up 2,281 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #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?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT Stellar & Tradestation
Broker: Primarily Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals, U308 and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,242 since Dec 2013
Thanks Given: 4,586
Thanks Received: 10,533


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,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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#p59930

Regards,

ABCTG


Follow me on X Reply With Quote




Last Updated on October 31, 2019


© 2026 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 - Downloads - Top
no new posts