Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623
|
no erocla,
you should print the values of your variables to the output bar to check them and see what values they contain.
This line "PL = BALANCE - GetRTAccountEquity(Account);" actually becomes negative when your equity grows and positive when you lose money.
Depending on your input values for Max_Daily_Porfit and Max_Daily_Loss I'd guess that your condition99 can never become true.
Regards,
ABCTG
|