Help with dashboard style indior
Results 1 to 3 of 3

Thread: Help with dashboard style indior

  1. #1
    I have a dashboard indi I am using to learn mql - it basically shows every pair and a remark whether price has crossed within a moving average.
    Nothing rocket operation about it, but I was using the next code and receiving incorrect results with some pairs and I figured its probably because I am utilizing Bid and this expression takes the Bid on the current chart - not the pair which its using.

    Inserted Code double aMA = iMA(aPair, 0, 10, 0, 1, PRICE_CLOSE, shift); if (Bidgt;aMA) text Above else if (Bidlt;aMA) text Beneath
    So, if aPair is GBPUSD for instance, and GBPUSD is the pair that is open with this chart, then the code is fine.
    However if aPair is EURUSD however, the chart is open to GBPUSD, I am presuming the Bid function is receiving the Bid of GBPUSD, and not EURUSD - is this correct ?

    So what can go in place of Bid, therefore it takes the price of the aPair that is passed and not the current chart.

    I hope that makes sense - dont worry about the inadequate code, I am only having my first play with this.

    Thx !

  2. #2
    hey ride.... Utilize market info...h

    Inserted Code double bid = MarketInfo(aPair,MODE_BID); double aMA = iMA(aPair, 0, 10, 0, 1, PRICE_CLOSE, shift); if (bidgt;aMA) text = Above else if (bidlt;aMA) text = Beneath

  3. #3
    Quote Originally Posted by ;
    hey ride.... Utilize market information...h

    Inserted Code double bid = MarketInfo(aPair,MODE_BID); dual aMA = iMA(aPair, 0, 10, 0, 1, PRICE_CLOSE, change); if (bidgt;aMA) text = Over else if (bidlt;aMA) text = Under
    ur a star !

    thx !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.