Relative_Volume_Indicator

Custom MT4 expert advisors published here.

Moderator: admin


Re: Relative_Volume_Indicator

Postby aladdin007 » Mon May 11, 2020 1:53 pm

Thank you so much Mr Mario apprentice
Can you please add an auto S/R drawing indicator on chart based on this script please
Ex in picture ,thank you so much
Attachments
11279151-CC39-4767-9E94-F0EE6263DC8A.png
aladdin007
 
Posts: 97
Joined: Sat Aug 24, 2019 1:28 pm


Re: Relative_Volume_Indicator

Postby aladdin007 » Tue May 12, 2020 2:51 pm

Can you please check if it’s this one
Thank you so much
http://www2.wealth-lab.com/WL5Wiki/TASCApr2014.ashx
aladdin007
 
Posts: 97
Joined: Sat Aug 24, 2019 1:28 pm


Re: Relative_Volume_Indicator

Postby aladdin007 » Wed May 13, 2020 6:54 am

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using TASCIndicators;

namespace WealthLab.Strategies
{
public class MyStrategy : WealthScript
{
protected override void Execute()
{
int period = 60;
double d = 2;
DataSeries relVol = Close*0; relVol.Description = "Relative Volume";
DataSeries theFoM = Volume*0; theFoM.Description = "Freedom of Movement";

for(int bar = 0; bar < Bars.Count; bar++)
{
relVol[bar] = RelVol.Series(Bars,period)[bar] > 0 ? RelVol.Series(Bars,period)[bar] : 0;
theFoM[bar] = FOM.Series(Bars,period)[bar] > 0 ? FOM.Series(Bars,period)[bar] : 0;
}

HideVolume();
ChartPane r = CreatePane( 30,false,true );
PlotSeries( r, relVol, Color.Black, LineStyle.Histogram, 3 );
ChartPane f = CreatePane( 30,false,true );
PlotSeries( f, theFoM, Color.Black, LineStyle.Histogram, 3 );

for(int bar = 1; bar < Bars.Count; bar++)
{
if (relVol[bar] <= d)
SetSeriesBarColor( bar, relVol, Color.DarkGray);
if (theFoM[bar] < d)
SetSeriesBarColor( bar, theFoM, Color.DarkGray);

if (theFoM[bar] > d || relVol[bar] > d) // Draw DPLs
{
DrawLine(PricePane,bar,Close[bar],Bars.Count-1,Close[bar],Color.Blue,LineStyle.Solid,1);
}
aladdin007
 
Posts: 97
Joined: Sat Aug 24, 2019 1:28 pm

Re: Relative_Volume_Indicator

Postby Apprentice » Wed May 13, 2020 8:50 am

Your request is added to the development list.
Development reference 1286.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36478
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Relative_Volume_Indicator

Postby Apprentice » Thu May 14, 2020 6:52 am

This code doesn't have the required formulae.
It plots RelVol and FOM indicators in a single indicator.
I need the code of RelVol and FOM
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36478
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Relative_Volume_Indicator

Postby aladdin007 » Thu May 14, 2020 2:44 pm

Thank you so much for all the help Mr Mario apprentice
This all what I get from the search

https://forum.esignal.com/forum/efs-dev ... e-dickover

I hope can auto plot the Lines of SR line in chart

Thank you so much for help
My god bless you
aladdin007
 
Posts: 97
Joined: Sat Aug 24, 2019 1:28 pm

Re: Relative_Volume_Indicator

Postby aladdin007 » Thu May 21, 2020 12:11 pm

Is that the right code Mr Mario apprentice ?
aladdin007
 
Posts: 97
Joined: Sat Aug 24, 2019 1:28 pm

Next

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 48 guests