Eu gostaria de aprender mais sobre as funcionalidades do fxdreema :)
-
Na parte superior do programa existe os nomes on Init - on Timer - on Tick - on Trade - on Chart - on Deinit. Quais as diferenças entre essas funcionalidades e quando ou no que usar cada uma delas ??? ???
-
Hi, These sections define when the blocks you put there will execute. Most part of the program probably will be in "on Tick section", but it depends on your strategy.
The section "on Init" is for when you want to declare variables or any other value like booleans or flags that won't change along the program, because anything you put here will be executed only once at the start (or Initialazation) of the program. This is to save a LOT of resources so you don't need to check every tick or bar things that won't change.
The section "on Timer" is for when you want to use the timer function and execute something every "X" time (minutes, hours, etc.) instead of every "X" ticks or pips (although bars DO have relation with time).
The section "on Tick" is for when you want to execute something on every tick or every "X" ticks or pips but you can use filters to execute every certain bars or even every certain time.
The section "on Trade" is for when you want to execute something on every "trade event" like when a trade opens or closes.
The section "on Chart" is for when you want to execute something on every "chart event" like when an object is drawn on the chart or when it interacts with other object (like a trend line).
The section "on Deinit" is just for when you want to execute something just before the program closes. -
@Andermaiden2nd, Thank you!!!
