input int CutLoss=-15;
if(AccountProfit() <= CutLoss)
{
Print("Close All");
}
จากโจทย์ข้างบน อยากให้ Close ALL เมื่อติดลบ ตามที่กำหนด
แต่ผลจากการทดลอง
20 <= -15
-5 <= -15
ลองเปลี่ยน input int CutLoss=-1;
-7 <= -1
3 ตัวอย่างนี้ ดันเข้าเงื่อนไข ทำให้ EA Close All หมดเลยครับ