MT4EAの範囲外エラーの修正 - Page 2
ページ 2 - 322 FirstFirst 12
Results 11 to 13 of 13

Thread: MT4EAの範囲外エラーの修正

  1. #11

    Quote Originally Posted by ;
    私は次のようにEAを作成しました...externint IntIndTF1 = 4; extern int IntInd1S1 = 2; extern int IntInd1S2 = 14; extern int IntIndTF2 = 1; extern int IntInd2S1 = 3; extern int IntInd2S2 = 9; PerH1 = High [iHighest(SymbolToManage、IntIndTF1、MODE_HIGH、IntInd1S2、IntInd1S1)]; PerL1 = Low [iLowest(SymbolToManage、IntIndTF1、MODE_LOW、IntInd1S2、IntInd1S1)]; PerM1 = NormalizeDouble((PerH1 PerL1)/2、Digits); PerH2 = High [iHighest(SymbolToManage、IntIndTF2、MODE_HIGH、IntInd2S2、IntInd2S1)]; PerL2 = Low [iLowest(SymbolToManage、IntIndTF2、MODE_LOW、IntInd2S2、IntInd2S1)]; .. ..
    最初にforループを修正してみてください。2番目のコードブロックでは、ループが実行されないため、エラーは発生しません。i= 0ですが、igt;Barsをチェックします。 iを使用すると、デクリメントは次のようになります。for(int i = Bars-IndicatorCounted()-1; igt; 0; i#8212;)

  2. #12

    Quote Originally Posted by ;
    {quote}最初にforループを修正してみてください。2番目のコードブロックでは、ループが実行されないため、エラーは発生しません。i= 0ですが、igt;Barsをチェックします。 iを使用すると、デクリメントは次のようになります。for(int i = Bars-IndicatorCounted()-1; igt; 0; i—)
    コードはEA内にのみあり、インジケーターではありません。IndicatorCounted()は引き続きEA内で機能しますか?

  3. #13

    Quote Originally Posted by ;
    制限バーの数に-1を追加しましたが、結果の変更に影響を与えることなく機能しているようですので、問題ありません。 iLowestiHighesetが-1を返さないことを確認するために、これを実行しましたが、結果がひどいb/cではないことを確認してください...intBarsCounted1 = TFBars1-MathMax(IntInd1S2、IntInd1S1 1); if(BarsCounted1 lt; 0){return;} int LimitBars1 = TFBars1-BarsCounted1; for(BarCount1 = LimitBars1-1; BarCount1 gt; = 0; BarCount1--){if((iHighest(SymbolToManage、IntIndTF1、MODE_HIGH、IntInd1S2、BarCount1 IntInd1S1)lt; 0)||(iLowest(SymbolToManage、IntIndTF1、MODE_LOW 、IntInd1S2、BarCount1 IntInd1S1)..。
    私はこの挿入されたコードのようなものを考えていました(int i =(IndicatorCounted()== 0)?Bars(symbol、tf)-1-MathMax(IntInd1S2、IntInd1S1 1):1; igt; 0; i#8212; ){int hi = iHighest(symbol、tf、mode、IntInd1S2、i); if(hi!=-1)PerH1 = High#91; hi#93 ;;それ以外の場合、PerH1 = -1; int lo = iLowest(...); if(lo!=-1)PerL1 = Low#91; lo#93 ;;それ以外の場合、PerL1 = -1;}

投稿権限

  • Youma新しいスレッドを投稿しない
  • Youmaは返信しない
  • あなたは添付ファイルを投稿しないかもしれない
  • Youma Notedityourposts
  •  
  • スマイリーはオンです
  • スマイリーはオンです
  • [IMG]コードがオンです
  • [VIDEO]コードがオンです
  • HTMLコードがオフです
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.