Convert Solar wind joy mt4 indicator to AFL

#1
Hai seniors and experts ,
Can anybody convert solar wind joy mt4 indicator into AFL ?
Solar wind joy (with no re-paint) is very effective mt4 indicator.
Help will be highly appreciated .
 
#3
Hai
when we work after 2nd bar made in solar wind joy indicator of Mt4 , above zero or below zero , it gives excellent results in intraday 15M timeframe.
The problem is that Mt4 is not user friendly as compared with amibroker .
You cannot open a multiple indicators in different windows and can switch on from one script to another ,
Thus .you can watch same script with different indicators at one click in amibroker .
 
#4
Dear all
In 4 days time , more than 200 people viewed this post ,
But no reply by any expert.
The help from seniors and experts Will be highly appreciated.
 

cloudTrader

Well-Known Member
#5
Dear all
In 4 days time , more than 200 people viewed this post ,
But no reply by any expert.
The help from seniors and experts Will be highly appreciated.
If you could do one thing then may be some expert here might like to convert the same.

Post an image of the MT4 indicator which you are mentioning and also the code .

Well I assume that it may help. I am not into coding so can't help you in that field.
 

KelvinHand

Well-Known Member
#7
Dear all
In 4 days time , more than 200 people viewed this post ,
But no reply by any expert.
The help from seniors and experts Will be highly appreciated.
In 6 days time , more than 349 people viewed this post ,
But no attached of image & the MT4 code by you.
You expect of help from seniors and experts will be very difficult.

Some one give you the hint, you also don't bother, so I also don't want to bother.
Experts & seniors also had a lot of other tasks to work on.

Up to you to keep complaining.
 
Last edited:
#8
Dear Sir
First of all , I really apologise for my mistake .
I am attaching the screenshot of solar wind joy Mt4 formula.

The code of the formula is as follows :







#property copyright "whoever"
#property link "whatever"

#property indicator_separate_window
#property indicator_buffers 5
#property indicator_color1 LimeGreen
#property indicator_color2 Red
#property indicator_color3 Gold
#property indicator_color4 LimeGreen
#property indicator_color5 Red
#property indicator_width3 2
#property indicator_width4 2
#property indicator_width5 2

extern int period=35;
extern int smooth=10;
extern bool DoAlert=true;
extern bool alertMail=false;
datetime lastAlertTime;


double ExtBuffer0[];
double ExtBuffer1[];
double ExtBuffer2[];
double ExtBuffer3[];
double ExtBuffer4[];
double ExtBuffer5[];
double ExtBufferh1[];
double ExtBufferh2[];

#define LinesIdentifier "signalLines"
int init()
{
IndicatorBuffers(8);
SetIndexBuffer(0,ExtBufferh1); SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexBuffer(1,ExtBufferh2); SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexBuffer(2,ExtBuffer3);
SetIndexBuffer(3,ExtBuffer4);
SetIndexBuffer(4,ExtBuffer5);
SetIndexBuffer(5,ExtBuffer0);
SetIndexBuffer(6,ExtBuffer1);
SetIndexBuffer(7,ExtBuffer2);

lastAlertTime = Time[1];

IndicatorShortName("Solar wind joy :)");
return(0);
}
int deinit()
{
int lookForLength = StringLen(LinesIdentifier);
for (int i=ObjectsTotal(); i>=0; i--)
{
string name = ObjectName(i);
if (StringSubstr(name,0,lookForLength)==LinesIdentifier) ObjectDelete(name);
}
return(0);
}


int start()
{
//int period=10;
int limit;
double prev,current,old;
double Value=0,Value1=0,Value2=0,Fish=0,Fish1=0,Fish2=0;
double price;
double MinL=0;
double MaxH=0;

int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
string sAlertMsg;

//limit=Bars-1;


for(int i=0; i<limit; i++)
{ MaxH = High[Highest(NULL,0,MODE_HIGH,period,i)];
MinL = Low[Lowest(NULL,0,MODE_LOW,period,i)];
price = (High+Low)/2;
Value = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1;
Value=MathMin(MathMax(Value,-0.999),0.999);
ExtBuffer0=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1;
Value1=Value;
Fish1=ExtBuffer0;
if (ExtBuffer0>0) ExtBuffer1=10; else ExtBuffer1=-10;
}

for(i=limit; i>=0; i--)
{
double sum = 0;
double sumw = 0;

for(int k=0; k<smooth && (i+k)<Bars; k++)
{
double weight = smooth-k;
sumw += weight;
sum += weight*ExtBuffer1[i+k];
}
if (sumw!=0)
ExtBuffer2 = sum/sumw;
else ExtBuffer2 = 0;
}
for(i=0; i<=limit; i++)
{
sum = 0;
sumw = 0;

for(k=0; k<smooth && (i-k)>=0; k++)
{
weight = smooth-k;
sumw += weight;
sum += weight*ExtBuffer2[i-k];
}
if (sumw!=0)
ExtBuffer3 = sum/sumw;
else ExtBuffer3 = 0;
}
for(i=limit; i>=0; i--)
{
ExtBuffer4=EMPTY_VALUE;
ExtBuffer5=EMPTY_VALUE;
ExtBufferh1=EMPTY_VALUE;
ExtBufferh2=EMPTY_VALUE;
if (ExtBuffer3>0) { ExtBuffer4=ExtBuffer3; ExtBufferh1=ExtBuffer3; }
if (ExtBuffer3<0) { ExtBuffer5=ExtBuffer3; ExtBufferh2=ExtBuffer3; }

if (ExtBuffer3[i+1] < 0 && ExtBuffer3 > 0)
{
if (DoAlert && i<5 && lastAlertTime!=Time[0])
{
sAlertMsg="Solar Wind - "+Symbol()+" "+TF2Str(Period())+": cross UP";
if (DoAlert) Alert(sAlertMsg);
lastAlertTime = Time[0];
if (alertMail) SendMail(sAlertMsg, "MT4 Alert!\n" + TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS )+"\n"+sAlertMsg);
}
}
else if( ExtBuffer3[i+1] > 0 && ExtBuffer3 < 0)
{
if (i<5 && lastAlertTime!=Time[0])
{
sAlertMsg="Solar Wind - "+Symbol()+" "+TF2Str(Period())+": cross DOWN";
if (DoAlert) Alert(sAlertMsg);
lastAlertTime = Time[0];
if (alertMail) SendMail(sAlertMsg, "MT4 Alert!\n" + TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS )+"\n"+sAlertMsg);
}

}


}
return(0);
}
// function: TF2Str()
// Description: Convert time-frame to a string
//-----------------------------------------------------------------------------
string TF2Str(int iPeriod) {
switch(iPeriod) {
case PERIOD_M1: return("M1");
case PERIOD_M5: return("M5");
case PERIOD_M15: return("M15");
case PERIOD_M30: return("M30");
case PERIOD_H1: return("H1");
case PERIOD_H4: return("H4");
case PERIOD_D1: return("D1");
case PERIOD_W1: return("W1");
case PERIOD_MN1: return("MN1");
default: return("M"+iPeriod);
}
}
//+------------------------------------------------------------------+
 
Last edited:

KelvinHand

Well-Known Member
#9
Dear Sir
First of all , I really apologise for my mistake .
I am attaching the screenshot of solar wind joy Mt4 formula.

The code of the formula is as follows :
.......................
Something to do with Fisher Transform.
Find in wisestock to find the sample code.
may be able to construct from there
 
Last edited:

Similar threads