Rectangle Extender

How to create strategies and indicators
Message
Author
poap
Posts: 1
Joined: Wed Jan 08, 2014 5:29 am
Location: Israel

Rectangle Extender

#1 Postby poap » Wed Jan 08, 2014 5:41 am

Hi,
I want to convert simple mq4 rectangle extender(align rectangle always to the right side of the screen) into forex tester
but it seems to help problem with my code,
it should extend to the right every tick,
here is the code,

Code: Select all

library Extender;
uses
  SysUtils, graphics, IndicatorInterfaceUnit, TechnicalFunctions;
procedure Init; stdcall;
begin
  IndicatorShortName('Extender');
  SetOutputWindow(ow_ChartWindow);
end;
procedure Calculate(index: integer); stdcall;
var
  i: integer;
 begin
     for i := ObjectsTotal-1 downto 0 do
     begin
            if ObjectType(ObjectName(i)) = obj_Rectangle  then
         ObjectSet(ObjectName(i), OBJPROP_TIME2, Time(0));
      end;
    end;
exports
Init, Calculate;
end.


would love to see this one solved,

Thanks you very much!

aprilnparker
Posts: 11
Joined: Wed Apr 30, 2014 11:38 am

Re: Rectangle Extender

#2 Postby aprilnparker » Wed Apr 30, 2014 11:41 am

Hi,

What is the problem you are having with the indicator? What is it not doing? I would be very interested in having this indicator for my sd back testing.

Thanks
April

FX Helper
Posts: 1479
Joined: Mon Apr 01, 2013 3:55 am

Re: Rectangle Extender

#3 Postby FX Helper » Fri May 02, 2014 6:38 am

Hello,

You can contact our programmer by email services@forextester.com regarding this question.


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 18 guests