Attachments forums

List of attachments posted on this forum.


All files on forums: 164332

Re: TradingView Indicators to MT4 Indicators

Tsar, Tue Jan 13, 2026 11:06 pm

Tsar wrote: Thu Jan 08, 2026 11:21 am To make it more 'SIMPLE' to Convert to MT4 Indicator :

NO NEED to Convert MT4 indicator
- Trades on chart
-- Signal labels
--- Quantity

Elliott's Quadratic Momentum - Strategy (Setting).jpg




And the Indicator will see in the Chart's like 👇


Elliott's Quadratic Momentum - Strategy (M15).jpg


Elliott's Quadratic Momentum - Strategy (H1 Chart).jpg


Elliott's Quadratic Momentum - Strategy (H4 Chart).jpg



Thank's before for your Attention :)

I have tried Convert that PineScript use CONVERTER...
And Compile with MetaEditor MT4's. It Successful and NOT Found an ERROR.

Code: Select all

//+------------------------------------------------------------------+
//|                      Elliott's Quadratic Momentum - Strategy.mq4 |
//|                                         Copyright presentTrading |
//|                                      https://www.tradingview.com |
//+------------------------------------------------------------------+
#property copyright   "presentTrading"
#property link        "https://www.tradingview.com/script/warXbPtA-Elliott-s-Quadratic-Momentum-Strategy-presentTrading/"
#property description "Elliott's Quadratic Momentum - Strategy"
#property strict
#property indicator_buffers 0

input int bars_limit = 100000; // Bars limit

string IndicatorObjPrefix;

bool NamesCollision(const string name)
{
   for (int k = ObjectsTotal(); k >= 0; k--)
   {
      if (StringFind(ObjectName(0, k), name) == 0)
      {
         return true;
      }
   }
   return false;
}

string GenerateIndicatorPrefix(string target)
{
   if (StringLen(target) > 20)
   {
      target = StringSubstr(target, 0, 20);
   }
   for (int i = 0; i < 1000; ++i)
   {
      string prefix = target + "_" + IntegerToString(i);
      if (!NamesCollision(prefix))
      {
         return prefix;
      }
   }
   return target;
}

int init()
{
   IndicatorBuffers(0);
   return INIT_SUCCEEDED;
}

int deinit()
{
   ObjectsDeleteAll(ChartID(), IndicatorObjPrefix);
   return 0;
}

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[])
{
   if (prev_calculated <= 0 || prev_calculated > rates_total)
   {
   }
   bool timeSeries = ArrayGetAsSeries(time);
   bool openSeries = ArrayGetAsSeries(open);
   bool highSeries = ArrayGetAsSeries(high);
   bool lowSeries = ArrayGetAsSeries(low);
   bool closeSeries = ArrayGetAsSeries(close);
   bool tickVolumeSeries = ArrayGetAsSeries(tick_volume);
   ArraySetAsSeries(time, true);
   ArraySetAsSeries(open, true);
   ArraySetAsSeries(high, true);
   ArraySetAsSeries(low, true);
   ArraySetAsSeries(close, true);
   ArraySetAsSeries(tick_volume, true);

   int toSkip = 0;
   for (int pos = MathMin(bars_limit, rates_total - 1 - MathMax(prev_calculated - 1, toSkip)); pos >= 0 && !IsStopped(); --pos)
   {
   }

   ArraySetAsSeries(time, timeSeries);
   ArraySetAsSeries(open, openSeries);
   ArraySetAsSeries(high, highSeries);
   ArraySetAsSeries(low, lowSeries);
   ArraySetAsSeries(close, closeSeries);
   ArraySetAsSeries(tick_volume, tickVolumeSeries);
   return rates_total;
}


But when Installed to MT4 Terminal... NOTHING see anything :Rofl:
This is a Strange ! :razz:

HELP HELP HELP me please :hug:
All files in topic