This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int OnInit() | |
{ | |
//--- indicator buffers mapping | |
SetIndexBuffer(0,RSI_Buffer,INDICATOR_DATA); | |
SetIndexBuffer(1,MA_Buffer,INDICATOR_DATA); | |
IndicatorSetString(INDICATOR_SHORTNAME,"RSI1st("+(string)RSI_Period+","+(string)MA_Period+")"); | |
PlotIndexSetString(0,PLOT_LABEL,"RSI("+string(RSI_Period)+")"); | |
PlotIndexSetString(1,PLOT_LABEL,"RSI 移動平均線("+string(RSI_Period)+","+string(MA_Period)+")"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int OnCalculate(const int rates_total, | |
const int prev_calculated, | |
const datetime &time[], | |
const double &open[], | |
const double &high[], | |
const double &low[], | |
const double &close[], | |
const long &tick_volume[], | |
const long &volume[], | |
const int &spread[]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnDeinit(const int reason) | |
{ | |
IndicatorRelease(hRSI); | |
IndicatorRelease(hRSIMA); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//+------------------------------------------------------------------+ | |
//| RSI1st.mq5 | | |
//| Copyright 2020, Beleif Co., Ltd. | | |
//| https://belief-hf.com/ | | |
//+------------------------------------------------------------------+ | |
#property copyright "Copyright 2020, Beleif Co., Ltd." | |
#property link "https://belief-hf.com/" | |
#property version "1.00" | |
#property indicator_separate_window |
OlderNewer