Topic: Display which position will be opened next

Hi,

i try to figure out how i can put in Comment which will be the next position open?

So ea is running and than in chart i see Next Signal: BUY or NEXT SIGNAL: SELL

I have tried but i get errors cause of struct.

struct Signal
  {
   int               MagicNumber;
   OrderScope        Scope;
   OrderDirection    Direction;
   int               StopLossPips;
   int               TakeProfitPips;
   bool              IsTrailingStop;
  };

So i Comment("NEXT SIGNAL: "+Direction)

Maybe Popov know his code best where can i get the information from next signal?

2 (edited by Roughey 2019-08-06 16:11:42)

Re: Display which position will be opened next

Just tried this

void OnTick()
  {
      int    tip    = OrderDirectionToCommand(signal.Direction); 
      if(signal.Direction==ORDER_DIRECTION_BUY)
        {
         Comment("NEXT SIGNAL: BUY");
        } 
      if(signal.Direction==ORDER_DIRECTION_SELL)
           {
         Comment("NEXT SIGNAL: SELL");
        }  

Can someone help how to get this signal.Direction to global?

So in my opinion is that when in a bar a signal is created so the signal opening on next bar a position. so it must be possible to show the next signal on the bar the signal is made ..

Re: Display which position will be opened next

Hmm Nobody an idea to get showing the next coming signal

Re: Display which position will be opened next

The signals are for immediate execution. There is no way to have the 'next' signals because they are calculated in realtime at the next Bar Open.

Re: Display which position will be opened next

okay thank you...