NEED HELP - I WANT TO TURN A INDICATOR INTO A ROBOT

Created at 13 Jun 2013, 01:24
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MR

MrTrader

Joined 12.06.2013

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: 

/algos/indicators/show/172

The method would be Buy if the GannHighLow crosses below price and Sell if the GannHighLow crosses above price.

 

Many thanks,

 

A.J


@MrTrader
Replies

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:

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)

 

 


@adaled

MrTrader
13 Jun 2013, 16:06

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)

 

 

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:
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,


@MrTrader

adaled
13 Jun 2013, 18:26

RE: RE:
MrTrader said:
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

adaled
18 Jun 2013, 16:42

Hello again, it has very poor results... Maybe you would like to share some more trading logic besides what you mentioned?


@adaled

MrTrader
18 Jun 2013, 17:01

RE:
adaled said:

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

MrTrader
19 Jun 2013, 15:29

RE:

Hi pal, thanks for making the robot, really appreciated.

I think you should remove the robot from the site and keep it between us?

 

Thanks.


@MrTrader

MrTrader
19 Jun 2013, 15:40

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,


@MrTrader

adaled
19 Jun 2013, 16:03

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.


@adaled

MrTrader
19 Jun 2013, 21:28

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,


@MrTrader

MrTrader
19 Jun 2013, 21:30

RE: RE: RE:
MrTrader said:
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