HI good day everyone please help me i am tryna say in this logic to stop loss at a certain equity loss level see my code i dont know what im doing wrong here So in My code i have calculated daily trades maximum profit so i called this function to use for maximum daily profit it worked but when i invert logic for loss to close all trades when certain loss has been incurred already Please help
- Profit Calc Function
- Stop trading after reaching daily Profit/Loss
- I need help in this regard
Why don't you use any comments?
It makes it so much simpler for other persons to read and understand your code.
Also for you, if f.e. you have to change something on your code a year later.
I really wanted to help you but I have not the time to read the whole whole code and try to understand what you have coded...
How and Why to Comment C and C++ Code - Cprogramming.com
- www.cprogramming.com
Learn why to comment your C and C++ code--and how you should do it.
Lukas Roth #:
thanks mate for your willingness!
Why don't you use any comments?
It makes it so much simpler for other persons to read and understand your code.
Also for you, if f.e. you have to change something on your code a year later.
I really wanted to help you but I have not the time to read the whole whole code and try to understand what you have coded...
Ransom Dikpen Egene:
HI good day everyone please help me i am tryna say in this logic to stop loss at a certain equity loss level see my code i dont know what im doing wrong here So in My code i have calculated daily trades maximum profit so i called this function to use for maximum daily profit it worked but when i invert logic for loss to close all trades when certain loss has been incurred already Please help
HI good day everyone please help me i am tryna say in this logic to stop loss at a certain equity loss level see my code i dont know what im doing wrong here So in My code i have calculated daily trades maximum profit so i called this function to use for maximum daily profit it worked but when i invert logic for loss to close all trades when certain loss has been incurred already Please help
extern double MaxDailyLoss = -200;
Можно просто не много изменить условие: bool close4loss = Calc_Today_Closed_Profits(_Symbol)+Calc_OpenOrders_Profits(_Symbol)<=-MaxDailyLoss;
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register