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 |
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
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
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
#property indicator_separate_window | |
#property indicator_buffers 2 | |
#property indicator_plots 2 | |
#property indicator_type1 DRAW_LINE | |
#property indicator_color1 clrDodgerBlue | |
#property indicator_width1 2 | |
#property indicator_style1 STYLE_SOLID |
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
//+------------------------------------------------------------------+ | |
//| MA1st.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_chart_window |
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(hMA); | |
} |
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
int OnInit() | |
{ | |
if(InpMaPeriod<1) | |
{ | |
Print("Error Invalid InpMaPeriod value"); | |
return(INIT_FAILED); | |
} | |
//--- indicator buffers mapping |
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
#property copyright "Copyright 2020, Beleif Co., Ltd." | |
#property link "https://belief-hf.com/" | |
#property version "1.00" | |
#property indicator_chart_window | |
#property indicator_buffers 1 | |
#property indicator_plots 1 | |
#property indicator_type1 DRAW_LINE | |
#property indicator_color1 clrDeepPink | |
#property indicator_width1 2 |
NewerOlder