GetTradingStrategies ()
method
Returns a collection of all trading strategies added in TSL
Syntax
public static TradingStrategy[] GetTradingStrategies ()
Return
TradingStrategy[]
array with all trading strategies.
Example
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace TradingStrategyExamples
{
public class TradingStrategyExamples : NETStrategy
{
public override void OnQuote()
{
TradingStrategy[] trs;
trs = TradingStrategy.GetTradingStrategies();
Print(trs[0].GetFileName());
Print(trs[0].GetIndicators());
Print(trs[0]);
Print(trs[0].Start());
Print(trs[0].Stop());
//property
Print(trs[0].Hotkey);
Print(trs[0].Name);
Print(trs[0].Script);
Print(trs[0].Started);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.