Hi. Maybe this is a longshot as everyone seems to use metatrader.
I've been slowly learning to code simple binary indicators for the puredeal platform. One simple little function I simply cannot work out on my own is how to return a number that is the average entry price of several entries. Thus several entry signals are triggered at different times (no problem!) the value of each entry is returned when it happens (no worries!) but I want the indicator to calculate the average value of all the entries (impossible!). Obviously I can work out the resulting average with a calculator, but I want the goddamned indicator to save me the trouble.
Can anyone point me in the correct direction on how to write this simple little bit of code?
Thanks!
(Woops, title should read "help required". Too late to be edited.)
I've been slowly learning to code simple binary indicators for the puredeal platform. One simple little function I simply cannot work out on my own is how to return a number that is the average entry price of several entries. Thus several entry signals are triggered at different times (no problem!) the value of each entry is returned when it happens (no worries!) but I want the indicator to calculate the average value of all the entries (impossible!). Obviously I can work out the resulting average with a calculator, but I want the goddamned indicator to save me the trouble.
Can anyone point me in the correct direction on how to write this simple little bit of code?
Thanks!
(Woops, title should read "help required". Too late to be edited.)