You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Could someone please modify this SuperTrend.mq4 in the form of: int OnInit() int OnCalculate and with #property strict
included
//+------------------------------------------------------------------+
//| dfsf.mq4 |
//| Copyright 2016, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
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[])
{
//---
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
appreciate a lot
thanks in advance
with regards
Could someone please modify this SuperTrend.mq4 in the form of: int OnInit() int OnCalculate and with #property strict
included
//+------------------------------------------------------------------+
//| dfsf.mq4 |
//| Copyright 2016, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
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[])
{
//---
//--- return value of prev_calculated for next call
return(rates_total);
}
//+------------------------------------------------------------------+
appreciate a lot
thanks in advance
with regards
This is the code for non-repainting super trend in new metatrader 4 format (even though there is no need for conversion of the "old" non-repainting version to this format - it works too, but just in case that someone wants to learn how the "new format" can be used)
This is the code for non-repainting super trend in new metatrader 4 format (even though there is no need for conversion of the "old" non-repainting version to this format - it works too, but just in case that someone wants to learn how the "new format" can be used)
thats quick. thank you so much. one favor please. could you make it like the original one repainting. for my ea repainting is better than nonrepainting because if the price suddenly reverses hugely i do not want my ea to look back at the past bar.
thank you very much mladen
regards
thats quick. thank you so much. one favor please. could you make it like the original one repainting. for my ea repainting is better than nonrepainting because if the price suddenly reverses hugely i do not want my ea to look back at the past bar.
thank you very much mladen
regards
:):):)
Sorry, but if you want it to repaint, then you shall have to make it repaint. Not my favorite sport to make repainters :)
:):):)
Sorry, but if you want it to repaint, then you shall have to make it repaint. Not my favorite sport to make repainters :)
sorry to hear that. i am very bad at indicators. i was really hoping you would help me thinking that its just a cakewalk for you. anyways could you just give me a hint please? i know its to do with (i), but dont know where.
thanks anyway.
regards
sorry to hear that. i am very bad at indicators. i was really hoping you would help me thinking that its just a cakewalk for you. anyways could you just give me a hint please? i know its to do with (i), but dont know where.
thanks anyway.
regards
tsedawa:
thanks anyway.
regards
anyway decrease periods you using for early signaling.