Postby TheRumpledOne » Sat Feb 21, 2009 1:44 am
PTG wrote:Here are a couple of basic Synergy files plus templates.
I think I see a bug in their code.\:
string TradeTrigger = "None";
if(RSIDirectionLine == "Long" && RSI50Line == "Long" && RSIMarketDirectionLine == "Long" && HeikenAshi == "Long") TradeTrigger = "Open Long";
if(RSIDirectionLine == "Short" && RSI50Line == "Short" && RSIMarketDirectionLine == "Short" && HeikenAshi == "Short") TradeTrigger = "Open Short";
string AddOnTrigger = "None";
if(RSIDirectionLine == "Long" && RSI50Line == "Long" && RSIMarketDirectionLine == "Long" && HeikenAshi == "Long" && StrongTradersDynamicIndex == "Long") TradeTrigger = "Open Long";
if(RSIDirectionLine == "Short" && RSI50Line == "Short" && RSIMarketDirectionLine == "Short" && HeikenAshi == "Short" && StrongTradersDynamicIndex == "Short") TradeTrigger = "Open Short";
Looks like they forgot to use AddOnTrigger instead of TradeTrigger
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!
Please do NOT PM me with trading or coding questions, post them in a thread.