forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Forum

Forex Software, Forex Strategies, Expert Advisors Generator

You are not logged in. Please login or register.


Forex Forum → Portfolio Expert → Display which position will be opened next

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 5

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...

Posts: 5

Pages 1

You must login or register to post a reply

Forex Forum → Portfolio Expert → Display which position will be opened next

Similar topics in this forum