1912

2008.07.01 08:27

2016.03.31 09:58

• 在H1时段交易;
• 在当前日的00:00am之后, 计算 Pivot, Resist1, Resist2, Resist3, Support1, Support2, Support3 水平;
• 买入: 当一小时烛形 (T-2) 测试了Support(n) 水平, 并且 (T-1) 烛形关闭于此水平上方, 止损放在 Support(n+1) 水平, 获利放在 Resist(n) 水平. T 是当前时间的小时;
• 为了把止损移动到不亏损的位置, 需要使用移动止损;
• 对应的卖出条件: 当一小时烛形(T-2)测试了 Resist(n), 而烛形 (T-1) 关闭于此水平之上, 止损 - Resist(n+1), 获利 - Support(n).

• TgtProfit 变量指定了止损和获利的水平, 可以选择的数值是从1到5;
• 如果 TgtProfit = 1, 那么测试的水平 (buy/sell) = Resist1/Support1, StopLoss (buy/sell) = Resist2/Support2, TakeProfit (buy/sell) = Support1/Resist1;
• 如果 TgtProfit = 2, 那么测试的水平 (buy/sell) = Resist1/Support1, StopLoss (buy/sell) = Resist2/Support2, TakeProfit (buy/sell) = Support2/Resist2;
• 如果 TgtProfit = 3, 那么测试的水平 (buy/sell) = Resist2/Support2, StopLoss (buy/sell) = Resist3/Support3, TakeProfit (buy/sell) = Support1/Resist1;
• 如果 TgtProfit = 4, 那么测试的水平 (buy/sell) = Resist2/Support2, StopLoss (buy/sell) = Resist3/Support3, TakeProfit (buy/sell) = Support2/Resist2;
• 如果 TgtProfit = 5, 那么测试的水平 (buy/sell) = Resist2/Support2, StopLoss (buy/sell) = Resist3/Support3, TakeProfit (buy/sell) = Support3/Resist3;
• 如果变量值 isTrace = True 那么各种信息将会写在记录文件中以便调试交易系统.

gpfTCPivotStop

L_Correlation

Pendulum 1_01

MultiIndicatorOptimizer