Movement Speed, distance and time frame with average speed calculation

Created at 18 May 2017, 13:36
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!
BA

bagdoc2016@gmail.com

Joined 17.05.2017

Movement Speed, distance and time frame with average speed calculation
18 May 2017, 13:36


Hi,

I have following specification and i am working on it, i would like to know what is movement distance and time frame
basically i would like to know the mentioned four points, if anyone has such cbot ready, please share it

Detais:

the bot will wait... until it detects 'fast movement' from the currency (up or down)

if the currency is moving down fast... it will sell, if it is moving up fast, it will buy...

as soon as the currency starts to slow down... it will close position. and wait for the next fast movement

the variables i want to set are:

1. movement speed required (to buy or sell)
2. movement distance required (to buy or sell)
3. time frame (used to determine time frame window average)
4. time frame window (this might be set to 1 minute for example, or 30 seconds, or 5 minutes, etc)

the 'average speed and average distance' will be determined by looking at the last time frame (for example, if the 'time frame' is set to 1 minute, and the bot decided that the average movement speed is 5x faster then normal... then it will understand that some big movement is happening with the currency, and it will take a position of buy or sell,

as it goes up or down, the bot will set a trailing stop loss of (X) variable,

and it will try to take as much of the movement as possible, until it his the trailing stop-loss,


@bagdoc2016@gmail.com
Replies

bagdoc2016@gmail.com
18 May 2017, 16:50

can anyone help me in the above, please


@bagdoc2016@gmail.com

ClickAlgo
18 May 2017, 22:00

have a look at this indicator and you may possibly use some of the logic, it can detect when the price of an instrument starts to move fast.

/algos/indicators/show/705


@ClickAlgo

bagdoc2016@gmail.com
19 May 2017, 11:58

Thanks Paul,

i had look and i will grap some code from there,

can you tell me what is meant by these two points

2. movement distance required (to buy or sell)
4. time frame window (this might be set to 1 minute for example, or 30 seconds, or 5 minutes, etc)

I have understand time frame, but what is time frame window (is it anything special in cbot?)

and what is movement distance (is it anything special in cbot?)

Thanks


@bagdoc2016@gmail.com