I read the value in script is corcoet,but his back's read the value is wrong ,why

 
    double xiaoosma1=iOsMA(Symbol(),PERIOD_H1,6,10,4,5,1);
    double xiaoosma2=iOsMA(Symbol(),PERIOD_H1,6,10,4,5,2);
    bool xiaoosmax=((xiaoosma1>xiaoosma2)&&((xiaoosma1<0)||(xiaoosma2<0)));
    bool xiaoosmay=((xiaoosma1<xiaoosma2)&&((xiaoosma1>0)||(xiaoosma2>0)));
 
William Roeder #:

Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
          Code debugging - Developing programs - MetaEditor Help
          Error Handling and Logging in MQL5 - MQL5 Articles (2015)
          Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
          Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)

thank you ,problom have solove,thanks