Every n'tick block
-
Hi;
What is the count field in every ntick or every nbars block.I couldnt understand the logic of count field here..For example at the top my ea have "every n'tick" block with a count of "100" ..then below this my condition blocks and at the bottom buy now block..What is the logic here works for COUNTING nticks ..
thx.. -
Without that block, the full block flow is executed on every tick (every price update). With that block, the lower blocks in the flow are executed every 100th tick.
-
Block passes once every 100 ticks.
-
thank you all..Then what about the every n bars..Default value here is 5 ..Does it passes once every 5th bar count ? For example in 1 Hour chart ..Does it pass once in 5 hours for controlling the conditions???Because every bar forms in 1 hour ???
-
Yes 1h chart = 60min candle so once every 5 hours
-
then if i want to check my conditions in 1hr chart .Every bar (closed value)continuosly..I must use 1 for the every n bar count field..block do i ?Is this correct??
-
or for example ..I have condition of ma5 x> ma 20 (cross)..If I have "every nbar" block at the top of blocks with a count of 5 ..Then opening a trade will be so hard because if it crosses at the 3rd bar and the execution because of the "every nbars at count of 5 "..Sorry for my English..Thx all of you..
-
@adentist
I think you should not skip bars in such specific case. "Every n ticks/seconds", is very useful, for example, if you want limit the frequency of do some heavy computation job to prevent unpreditable problems