multi time frame

Posted By: arns

multi time frame - 06/21/20 22:09

Hello

I would like to use a daily moving average inside my code already using 5 minutes bar but i really do not understand where to use time frame function as I already use bar function ...
Any help with a small example would be great...
Thanks a lot
Posted By: jcl

Re: multi time frame - 06/23/20 12:21

If you're using the bar function, then you have no 5 minutes bars. With 5 minutes bars, you can get a daily timeframe simply with TimeFrame = framesync(1440/5). With bars of varying length, you must synchronize the time frame to one day as decribed in the manual.
© 2024 lite-C Forums