Hi, I was wondering if anyone knew how to correctly display when my EFS executes a trade, the date that it made it and the time of the day it made the trade. For use with the Formula Output window so I can see where and when my trades executed.
I currently have the following:
Then:
I know this is only returning the current date and the most recent time for EVERY trade going back. I've looked at rawtime() but don't understand how to use it to get the correct times and dates. Does anyone have this already written and can share it with me, it's very frustrating to see all my trades come back with the same date and time even when they were executed on different days/times. I feel it's something simple I'm just not understanding.
Help is much appreciated. Thanks, in advance.
I currently have the following:
PHP Code:
var Today = new Date(); var H = Today.getHours(); var M = Today.getMinutes(); var S = Today.getSeconds();
PHP Code:
debugPrintln("LONG at: " + open() + " on " + Today + " " + H + ":" + M + ":" + S + " ");
Help is much appreciated. Thanks, in advance.
Comment