06-02-2010, 02:50 AM
|
#2 |
Join Date: Jan 2009 Location: New York Thanks: 6
Thanked 26 Times in 17 Posts
| Re: Stop After X Profit Hi,
This code will give you both.
If you make enough it will stop, and if you lose too much it will stop as well.
If you do not want to use the loss, just put there 10000000 Code: {***************************** Check For Daily Profit/Loss **************************}
Input: Profit_For_Day (500);
Input: Loss_For_day (300);
Vars: TradeSwitch (True);
If Date <> Date[1] Then Begin Value10 = NetProfit; TradeSwitch = True; End;
If (NetProfit - Value10) >= (Profit_For_Day) or (NetProfit - Value10) <= -(Loss_For_day) Then TradeSwitch = False;
If TradeSwitch = True
Then Begin
//Your trade conditions here
end; www.linetrol.com
. . . |
| |