| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Timeframe of open orders https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3754 |
Page 1 of 1 |
| Author: | skinner36 [ Tue Jul 29, 2014 8:13 am ] |
| Post subject: | Timeframe of open orders |
Hi There, To be able to do time calculations I need to be able to tell the chart timeframe that an order was opened from. Currently when I open an order I store the timeframe in the comments of the order as tf=15 or tf=240. My question is, does any one know of an easier way to be able to tell what chart timeframe an order was opened on? Thanks in advance, John |
|
| Author: | Elixe [ Tue Jul 29, 2014 10:28 am ] |
| Post subject: | Timeframe of open orders |
Hi As far as I know, this is not possible, I would suggest you set the orders magicnumber to the timeframe value, might make it easier to select them as the comment can sometimes be modified by brokers. Cheers, |
|
| Author: | dudest [ Tue Jul 29, 2014 2:56 pm ] |
| Post subject: | Timeframe of open orders |
Clever |
|
| Author: | MrLong [ Wed Jul 30, 2014 7:40 am ] |
| Post subject: | Timeframe of open orders |
comment = "TF: "+Period(); Andy |
|
| Author: | skinner36 [ Wed Jul 30, 2014 7:57 am ] |
| Post subject: | Timeframe of open orders |
Thanks for the ideas guys, I was basically oping that the timeframe of when the order was opened would be stored against the order information. I thought it would be a long shot Cheers, John |
|
| Author: | milanese [ Wed Jul 30, 2014 8:08 am ] |
| Post subject: | Timeframe of open orders |
No, because you can open positions, without opening a chart, so the only way is to give different magicnumbers for each tf, or store the tf in the order_comment... Cheers Tommaso |
|
| Author: | dudest [ Wed Jul 30, 2014 9:23 am ] |
| Post subject: | Timeframe of open orders |
OrderMagicNumber() ? OrderComment() ? |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|