Programing topic (set fix time stamp)

 

Hallo,

is it possible to set a time stamp. The ea should use this time stamp (price level) to send an order after it went up 50 points.

Thank you for your support

Com

 

it's possible to set (just about) anything.

Your idea of time stamp as a price level differs from any definition of a time stamp that I have come across in many decades.

Do you mean .. " when this future time stamp occurs, note the price. If price then increases over price-at-time-stamp by 50 points, then open an order" ?

(editted several times over 2 minutes making logic clearer)

 
brewmanz:

it's possible to set (just about) anything.

Your idea of time stamp as a price level differs from any definition of a time stamp that I have come across in many decades.

Do you mean .. " when this future time stamp occurs, note the price. If price then increases over price-at-time-stamp by 50 points, then open an order" ?

(editted several times over 2 minutes making logic clearer)


you are right, " when this future time stamp occurs, note the price. If price then increases over price-at-time-stamp by 50 points, then open an order" that is my intension

who can I make this possible

 

Maybe something like

extern datetime SpecialTime;

int start()
{
 static datetime markDone = 0;
 static double markPrice = -1;
 if(Time[0] > SpecialTime && markDone == 0)
 {
  markDone = Time[0];
  markPrice = Bid;// or Ask or Close[0]
 }
 double somePrice = Bid;// or Ask or ...
 if(markPrice > 0 && somePrice > (markPrice + deltaPrice))
 {
   DoOpenOrder();
 }
}

NB Code just typed; not checked or compiled, and I'm watching TV at same time.

 
brewmanz:

Maybe something like

NB Code just typed; not checked or compiled, and I'm watching TV at same time.


thanks for your strong support, I will try it.