Example #1
0
        public TpSlM1SimulateStrategy(string symbol, double tp, double sl, SimulationData simulationData)
        {
            m_simulationData = simulationData;

            m_symbol = symbol;
            if (WekaUtils.GetSymbolPoint(symbol) == 1)
            {
                point = 0.001;
            }
            else
            {
                point = 0.00001;
            }
            eps = point * 0.01;

            m_tp = tp * point;
            m_sl = sl * point;
        }
Example #2
0
 internal static int GetPointInv(double price)
 {
     //return (price > 20 ? 100 : 10000);
     return(WekaUtils.GetSymbolPoint(TestParameters2.CandidateParameter.MainSymbol) * 100);
 }