binary-com / binary-bot

Visual automation for binary.com
binary-bot.binary.sx
MIT License
232 stars 523 forks source link

EMA 14 cross #3913

Open santa4claus opened 1 year ago

santa4claus commented 1 year ago

Hello! Dear Binary-ex-machina, i need your help

There's a strategy when a purchase is made after the chart crosses the exponential average with a period of 14, when the chart crosses the EMA 14 candle from the bottom up with the beginning of the next candle, a contract for a decrease with an expiration equal to the period of the candle is bought, and vice versa when the EMA 14 candle crosses from top to bottom, a contract is bought for an increase with an expiration equal to the period of the candle. Help implement in the bot so that if you lose, continue to buy a contract in the same direction at the beginning of the next candle with an increased rate until you win. The number of martingale stages should be regulated.

binary-ex-machina commented 1 year ago

@santa4claus, here is the idea. You must do a loop before setting the contract duration. Inside that loop, you calculate the EMA and the comparison with the candle open and close. After that, you define the seconds left on the candle using the block Seconds to End. After a loss, the system will keep trading, ignoring the EMA/candle comparison until it wins, then it restarts the cycle.

Download it here ema cross candle.json.zip

Play it here https://binaryblocks.pro/

image

Singertech5 commented 1 year ago

@binary How do I add the Sleep until function to a bot?

Singertech5 commented 1 year ago

image

binary-ex-machina commented 1 year ago

@Singertech5, the sleep block was removed. Now you have a block that loops until you break out of it.

Check the image below with a simple crossover of 2 SMAs as analysis. Before setting the duration and the stake (defining the contract options), insert the block and put your analysis inside. When the conditions you want are met, block "Break out" stops the loop and proceeds to the next part.

Download it here infinity loop.json.zip

Run it here https://binaryblocks.pro/

image