Timeframe of open orders

Post Reply
skinner36

Timeframe of open orders

Post by skinner36 »

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
User avatar
Elixe
Trader
Posts: 98
Joined: Tue Jun 04, 2013 6:44 pm
Location: France

Timeframe of open orders

Post by Elixe »

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,
:D
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Timeframe of open orders

Post by dudest »

Elixe » Tue Jul 29, 2014 1:28 pm wrote: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,
Clever :good:
MrLong

Timeframe of open orders

Post by MrLong »

skinner36 » Tue Jul 29, 2014 8:13 am wrote: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
comment = "TF: "+Period();

Andy
skinner36

Timeframe of open orders

Post by skinner36 »

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
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Timeframe of open orders

Post by milanese »

skinner36 » Wed Jul 30, 2014 7:57 am wrote: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
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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Timeframe of open orders

Post by dudest »

skinner36 » Wed Jul 30, 2014 10:57 am wrote: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
OrderMagicNumber() ?
OrderComment() ?
Post Reply

Return to “Coders Hangout”