Help with strategy

Posted By igor111 Tuesday, October 16, 2012
Add to Favorites0
Author Message
igor111
 Posted Tuesday, October 16, 2012
Supreme Being

Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)

Group: Forum Members
Last Active: Saturday, October 26, 2013
Posts: 8, Visits: 49
Who can help me with my strategy? I can not set a stop order modify .... What am I doing wrong?
 EUR_USD12.acts (6 views, 3.89 KB)
Admin
 Posted Friday, October 19, 2012
Administrator

Administrator - (130,491 reputation)

Group: Administrators
Last Active: Friday, June 02, 2017
Posts: 548, Visits: 3,295

Dear Igor,

In your script you use StopOrderobject that is not identified anywhere.

So to use the Order modify methodyou need to identify the StopOrder variable, e.g:

 procedureOnOrderChange(const Action: TDataModificationType; const Order: TOrder);

begin

if (Action = dmtInsert) and (Order.Tag = tag)then StopOrder:=Order;

end;


or use the OrderList to find theorder you want to modify:

 Fori:=OrderList-1 downto 0 do

If (OrderList.get(i).Tag = tag) and (OrderList.get(i).OrderType=otStop) then

OrderList.get(i).Modify(History.Last(1).Low,StopOrder.Amount);



Best regards

-ACTFX© Forum Administrator
igor111
 Posted Friday, October 19, 2012
Supreme Being

Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)Supreme Being - (1,986 reputation)

Group: Forum Members
Last Active: Saturday, October 26, 2013
Posts: 8, Visits: 49
Thank you for your help. Unfortunately does not work for my efforts :-) I go studying the manual .... ....


My strategy for change:
 EUR_USD12.acts (6 views, 3.76 KB)

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top