適当に書いたから訳してね。 言語はmql4 9割ネタで1割まじでした笑 int PrinceSignal(int magic); //if(pos <= 0 && First Average Gain = Sum of Gains over the past 14 periods / 14. First Average Loss = Sum of Losses over the past 14 periods / 14)ret = 1;// if(pos >= 0 && Average Gain = [(previous Average Gain) x 13 + current Gain] / 14. Average Loss = [(previous Average Loss) x 13 + current Loss] / 14. ) ret = 1;//