Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Put the trade time to the end of the current candle #1414

Closed
GutierrezGu opened this issue Apr 11, 2019 · 5 comments
Closed

Put the trade time to the end of the current candle #1414

GutierrezGu opened this issue Apr 11, 2019 · 5 comments
Labels

Comments

@GutierrezGu
Copy link

Hello Guys, I need help, I dont know how can i adjust the trade time to the end of the current candle.

For example: Default candle time: 5 Minutes
The bot start the trade with 3 Minutes, then the trade time should be 2 Minutes.

Can you help me please ?

@Zaxushitso
Copy link

Zaxushitso commented Apr 14, 2019

Hi; to open a trade at the end of a candle act like picture attached (600 is time interval (5min) and 570 are the passed seconds after that a trade will be opened)
you can change 570 up to your strategy and experiments you got
For 1min interval use 60 for 2min interval use 120 and so on, and keep in mind that opening a trade takes about 2 ticks which is equal to 4 seconds

for example if you want to open a trade exactly at the open of a 1min candle interval you should do: remainder of seconds since epoch /60 > 56
to open at the end of a 1min candle interval you should do:
remainder of seconds since epoch /60 > 55 or 54
Opera Snapshot_2019-04-14_160430_www binary bot

if you want to open a trade at the end of any time interval candlestick do the above mentioned thing for every interval you want plus conditions defined for every single one

@GutierrezGu
Copy link
Author

I am using candle of 5min, Didnt work with me this,
It does not open the trade with this setting.

image

@Zaxushitso
Copy link

Zaxushitso commented Apr 20, 2019

I told you Let the bot to open a trade (give it enough time). It takes at least 4 seconds but it's better to give it 5 to 6 seconds
Set the number to 295

Why you have defined EMA and Bolinger inside the - Epoch if - ?!! put them in top of the purchase block.

@aaimio aaimio closed this as completed May 7, 2019
@GutierrezGu
Copy link
Author

Thank you guys

@promzy4844
Copy link

I am using candle of 5min, Didnt work with me this, It does not open the trade with this setting.

image

Please I need this block help me please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants