Hi, I know ZEROOOOOOOOOOO about coding. Im switching from my old platform to metatrader, and I wanted to use my old volume indicator (dpr file) in metatrader (mq4 file?)
When I open the DPR file with meta-trader, this is the code I get; Can someone please convert it for me into a mq4 version?
Two questions, why do you expect people on a mql4 forum to know about DPR ? (what is DPR ?) and why do you expect people will just do this for you ?
Why don't you put your hand in your pocket and get it done for you: MT4 coding
By the way, are you aware that "Volume" is actually tick count ?
Thats my point +)
I know nothing about coding, so apparently im even on the wrong forums!
Can you advise me on what type of forum would best address a question like how to convert DPR code into MT4 code?
Thats my point +)
I know nothing about coding, so apparently im even on the wrong forums!
Can you advise me on what type of forum would best address a question like how to convert DPR code into MT4 code?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, I know ZEROOOOOOOOOOO about coding. Im switching from my old platform to metatrader, and I wanted to use my old volume indicator (dpr file) in metatrader (mq4 file?)
When I open the DPR file with meta-trader, this is the code I get; Can someone please convert it for me into a mq4 version?
//---------------------------------------------------------------------------
// Volume indicator
//---------------------------------------------------------------------------
library Volume;
uses
graphics, IndicatorInterfaceUnit;
var
// Buffers
vol: TIndexBuffer;
//---------------------------------------------------------------------------
// Initialize indicator
//---------------------------------------------------------------------------
procedure Init; stdcall;
begin
// define properties
IndicatorShortName('Volume');
SetOutputWindow(ow_SeparateWindow);
AddLevel(0, psDot, 1, cl_GridColor);
// create buffers
vol := CreateIndexBuffer;
IndicatorBuffers(1);
SetIndexBuffer(0, vol);
SetIndexStyle(0, ds_Histogram, psSolid, 1, clGreen);
SetIndexLabel(0, 'Volume');
end;
//---------------------------------------------------------------------------
// Deinitialize indicator
//---------------------------------------------------------------------------
procedure Done; stdcall;
begin
end;
//---------------------------------------------------------------------------
// Calculate requested bar
//---------------------------------------------------------------------------
procedure Calculate(index: integer); stdcall;
begin
vol[index] := IndicatorInterfaceUnit.volume(index);
end;
exports
Init, Done, Calculate;
end.