NEED HELP - I WANT TO TURN A INDICATOR INTO A ROBOT
NEED HELP - I WANT TO TURN A INDICATOR INTO A ROBOT
13 Jun 2013, 01:24
Hello,
Is there anyone that can help turn this Indicator Gann HiLo into a robot for Calgo:
The method would be Buy if the GannHighLow crosses below price and Sell if the GannHighLow crosses above price.
Many thanks,
A.J
Replies
MrTrader
13 Jun 2013, 16:06
RE:
Look at SampleTrendRobot. It's doing something very similar with moving average indicator.
You can use the functions HasCrossedAbove/HasCrossedBelow to find your triggers:
Something like this in the OnTick or the OnBar:
if(Functions.HasCrossedBelow(Gann.Result, MarketSeries.Close[index], 0) { Buy(); } else if(Functions.HasCrossedAbove(Gann.Result, MarketSeries.Close[index], 0) { Sell(); }Buy() and Sell() can be copied from the SampleTrendRobot (in cAlgo list of robots)
Hi adaled,
Thanks for your responce, Im very new to C# programming I have no knowledge what so ever, do you mind if you can build it for me?
Much appreciated,
@MrTrader
MrTrader
13 Jun 2013, 16:53
RE:
Look at SampleTrendRobot. It's doing something very similar with moving average indicator.
You can use the functions HasCrossedAbove/HasCrossedBelow to find your triggers:
Something like this in the OnTick or the OnBar:
if(Functions.HasCrossedBelow(Gann.Result, MarketSeries.Close[index], 0) { Buy(); } else if(Functions.HasCrossedAbove(Gann.Result, MarketSeries.Close[index], 0) { Sell(); }Buy() and Sell() can be copied from the SampleTrendRobot (in cAlgo list of robots)
Hello, Ive also found a robot with a similiar method SMA 252 /algos/robots/show/175
Can you help me out with this?
Thanks,
@MrTrader
adaled
13 Jun 2013, 18:26
RE: RE:
adaled said:Look at SampleTrendRobot. It's doing something very similar with moving average indicator.
You can use the functions HasCrossedAbove/HasCrossedBelow to find your triggers:
Something like this in the OnTick or the OnBar:
if(Functions.HasCrossedBelow(Gann.Result, MarketSeries.Close[index], 0) { Buy(); } else if(Functions.HasCrossedAbove(Gann.Result, MarketSeries.Close[index], 0) { Sell(); }Buy() and Sell() can be copied from the SampleTrendRobot (in cAlgo list of robots)
Hello, Ive also found a robot with a similiar method SMA 252 /algos/robots/show/175
Can you help me out with this?
Thanks,
OK...
I'll let you know when it's ready.
@adaled
MrTrader
18 Jun 2013, 17:01
RE:
Hello again, it has very poor results... Maybe you would like to share some more trading logic besides what you mentioned?
Hi,
The method be Buy if the price has risen above the indicator and Sell if price has fallen below the indicator.
Also if you could re-adjust indicator value of 10 to 25 or 50.
Please send the code to me I will have a look.
Thanks.
@MrTrader
adaled
19 Jun 2013, 16:03
RE:
Hi also, could you remove Trailing stop losses, its not needed.
What entry are you using for this robot E.G wait for 5 pips above Gann Indicator to trigger buy/sell?
Thanks,
Hi, the trailing stop is actually optional. it only trails if the parameters are greater than 0. I put this in the description.
The triggers are as you said:
The method be Buy if the price has risen above the indicator and Sell if price has fallen below the indicator.
@adaled
MrTrader
19 Jun 2013, 21:28
RE: RE:
MrTrader said:Hi also, could you remove Trailing stop losses, its not needed.
What entry are you using for this robot E.G wait for 5 pips above Gann Indicator to trigger buy/sell?
Thanks,
Hi, the trailing stop is actually optional. it only trails if the parameters are greater than 0. I put this in the description.
The triggers are as you said:
The method be Buy if the price has risen above the indicator and Sell if price has fallen below the indicator.
Hello,
yes that would be the method, I backtested it in cAlgo; H1, Value: 25 & 50, its abit funny I saw a loss of 120 pips, it doesnt usually do that in manual trading,
@MrTrader
MrTrader
19 Jun 2013, 21:30
RE: RE: RE:
adaled said:MrTrader said:Hi also, could you remove Trailing stop losses, its not needed.
What entry are you using for this robot E.G wait for 5 pips above Gann Indicator to trigger buy/sell?
Thanks,
Hi, the trailing stop is actually optional. it only trails if the parameters are greater than 0. I put this in the description.
The triggers are as you said:
The method be Buy if the price has risen above the indicator and Sell if price has fallen below the indicator.
Hello,
yes that would be the method, I backtested it in cAlgo; H1, Value: 25 & 50, its abit funny I saw a loss of 120 pips, it doesnt usually do that in manual trading,
Hi, also I forgot to mention what software did you use to create the robot?
Thanks,
@MrTrader
adaled
13 Jun 2013, 11:27
Look at SampleTrendRobot. It's doing something very similar with moving average indicator.
You can use the functions HasCrossedAbove/HasCrossedBelow to find your triggers:
Something like this in the OnTick or the OnBar:
Buy() and Sell() can be copied from the SampleTrendRobot (in cAlgo list of robots)
@adaled