Market Profile Indicator
MT4 Model : Market Profile iMT4
MT5 Model : Market Profile iMT5
Some Pre-Constructed Templates
Buffers for Builders :
That is the guide and code snippets for calling buffers of Market Profile indicator.
Out there buffers :
Buffer Index | Shift Worth | Description |
---|---|---|
0 | 0 ~ n-1 | Worth Space Low |
1 | 0 ~ n-1 | Worth Space Excessive |
2 | 0 ~ n-1 | Level of Management |
3 | 0 ~ n-1 | Profile Low |
4 | 0 ~ n-1 | Profile Excessive |
5 | 0 ~ n-1 | Profile Open |
6 | 0 ~ n-1 | Profile Shut |
7 | 0 ~ n-1 | Preliminary Steadiness Low |
8 | 0 ~ n-1 | Preliminary Steadiness Low |
9 | 0 ~ n-1 | Variety of Rows on Profile |
10 | 0 ~ n-1 | Begin Time of Profile |
11 | 0 ~ n-1 | Finish Time of Profile |
12 | 0 ~ m-1 | Worth Arrays of Newest Profile |
13 | 0 ~ m-1 | Values of Newest Profile |
Notes :
– n = Variety of Profiles (Equal to Variety of Histograms on the inputs)
– m = Variety of Rows on Newest Profile (Equal to Buffer No.9)
– Profile Specs can be found for all profiles. However the detailed values (Worth arrays and values on every value stage) is on the market for contemporary profile solely.
Examples and Code Snippets :
Calling Profile Specs for index=n (MT4) :
VAH=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,1,n);
POC=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,2,n);
HistoLow=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,3,n);
HistoHigh=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,4,n);
HistoOpen=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,5,n);
HistoClose=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,6,n);
HistoIBL=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,7,n);
HistoIBH=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,8,n);
m=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,9,n);
StartTime=(datetime)iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,10,n);
EndTime=(datetime)iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,11,n);
Calling Newest Profile Values (MT4) :
for( i=0; i<m; i++)
{
Worth[i]=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,12,i);
Worth[i]=iCustom(Image(),Interval(),”MarketMarket Profile iMT4″,…..inputs……,13,i);
}
Calling Profile Specs (MT5) :
int handleMP=iCustom(Image(),Interval(),”MarketMarket Profile iMT5″,…..inputs……);
if( handleMP==INVALID_HANDLE ) Print(“Invalid Deal with for Indicator. Err : “,GetLastError());
int nbuf;
nbuf=CopyBuffer(handleMP,0,0,n,VAL); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,1,0,n,VAH); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,2,0,n,POC); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,3,0,n,HistoLow); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,4,0,n,HistoHigh); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,5,0,n,HistoOpen); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,6,0,n,HistoClose); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,7,0,n,HistoIBL); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,8,0,n,HistoIBH); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,9,0,n,m); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,10,0,n,StartTime); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,11,0,n,EndTime); if( nbuf!=n ) Print(“Copy Buffer Err : “,GetLastError());
Calling Newest Profile Values (MT5) :
int handleMP=iCustom(Image(),Interval(),”MarketMarket Profile iMT5″,…..inputs……);
if( handleMP==INVALID_HANDLE ) Print(“Invalid Deal with for Indicator. Err : “,GetLastError());
int nbuf;
nbuf=CopyBuffer(handleTPO,9,0,1,mbuf); if( nbuf!=1 ) Print(“Copy Buffer Err : “,GetLastError());
m=mbuf[0];
nbuf=CopyBuffer(handleMP,12,0,m,Worth); if( nbuf!=m ) Print(“Copy Buffer Err : “,GetLastError());
nbuf=CopyBuffer(handleMP,13,0,m,Worth); if( nbuf!=m ) Print(“Copy Buffer Err : “,GetLastError());
Contact FxBestTools for extra assist and steering.
Discover FxBestTools All Merchandise.