support asynchronous events
Created at 17 May 2022, 16:20
support asynchronous events
17 May 2022, 16:20
HI,
Normally in bots you have triggers and filters that if meet will trigger the open position but is general this are synchronous ,
my question is about having an open position when in a specific timespan 2 or more events .
in this example a trade should be opened when event 1 the cross is true , event 2 the relative chikou span (yellow line) is below candles and event 3 the candle breakout the cloud.
as you can see in this case the cross happen first , after some candles happen the event 2 and lastly the event 3 (well here at the candle close )
amusleh
18 May 2022, 10:15
Hi,
Not sure what do you mean by support support asynchronous eventsevents, in your example you have to wait for 3rd event to happen then execute your logic.
Asynchronous means doing other things while waiting for the result of something that is already executed/happened.
@amusleh