Topics
Replies

coppard.steve
04 Mar 2024, 21:54

RE: RE: RE: Calculating bar size help please

PanagiotisCharalampous said: 

coppard.steve said: 

PanagiotisCharalampous said: 

Hi there,

how can I test for the pip size of the last bar closed?

Here you go

 var barPipSize = Math.Abs(Bars.ClosePrices.Last(1) - Bars.OpenPrices.Last(1)) / Symbol.PipSize;

Best Regards,

Panagiotis

Thanks very much Panagiotis!

I've noticed at particular times when the London and New York hours overlap that the big banks move the markets, so I am trying to develop a cBot to look for these large aggressive buy and sell candles and “follow the whales” with a long or short trade. So 3 candles on a short time frame more than 20 pips could trigger an automated trade with a take profit and stop loss.

What method can I use to trigger a trade between specific UTC+3 times?

Really appreciate your help.

Thanks 
Steve

Hi Steve,

There is no specific method, you would need to implement the specific checks yourself by checking Server.Time.

Best regards,

Panagiotis

Thanks again for you help.


@coppard.steve

coppard.steve
01 Mar 2024, 21:57 ( Updated at: 02 Mar 2024, 07:22 )

RE: Calculating bar size help please

PanagiotisCharalampous said: 

Hi there,

how can I test for the pip size of the last bar closed?

Here you go

 var barPipSize = Math.Abs(Bars.ClosePrices.Last(1) - Bars.OpenPrices.Last(1)) / Symbol.PipSize;

Best Regards,

Panagiotis

Thanks very much Panagiotis!

I've noticed at particular times when the London and New York hours overlap that the big banks move the markets, so I am trying to develop a cBot to look for these large aggressive buy and sell candles and “follow the whales” with a long or short trade. So 3 candles on a short time frame more than 20 pips could trigger an automated trade with a take profit and stop loss.

What method can I use to trigger a trade between specific UTC+3 times?

Really appreciate your help.

Thanks 
Steve


@coppard.steve