delay start
Created at 22 Apr 2015, 14:46
TR
delay start
22 Apr 2015, 14:46
hello
I want to delay the cycle of my robot after each profit or loss
for that,I am looking for a formula that my robot starts one minute after it is turned on.
exemple:
protected override void OnStart()
{
?......???.....?
parabolicSAR = Indicators.ParabolicSAR(MinAF, MaxAF);
var tradeType = parabolicSAR.Result.LastValue < Symbol.Bid ? TradeType.Buy : TradeType.Sell;
Print("Trade type is {0}, Parabolic SAR is {1}, Bid is {2}", tradeType, parabolicSAR.Result.LastValue, Symbol.Bid);
ExecuteMarketOrder(tradeType, Symbol, Volume, "PSAR TrailingStops");
}
cordially
Spotware
19 Jun 2015, 14:15
Dear Trader,
You can use the OnTimer() method in your code. Please note that we do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.
@Spotware