เป้าหมาย
- การคำนวณ Volume ที่จะใช้ในการเทรดเพื่อกำหนดความเสี่ยงในการเข้า Order
- สร้างการคำนวณพื้น ฐานที่เหมาะสม
Source Code & Algorithm
เลือกราคาตัวอย่างมา 1 จุด
double priceClose = Close[10];
หาว่าราคานี้มีทั้งหมดกี่ Point
for(int i=0;i<Digits;i++)
{
priceClose=priceClose*10;
}
นำ Point ที่ได้ทั้งหมด * Volume ต่ำสุด
Print("1 Point use money : "+PointCalculate()*0.01);
คำนวณ Volume ที่สามารถใช้ได้ ต่อเงินทั้งหมด
VolumeCanUse = AccountBalance()/(PointCalculate()*0.01);
MT4 File : Note#3
- การคำนวณ Volume ที่จะใช้ในการเทรดเพื่อกำหนดความเสี่ยงในการเข้า Order
- สร้างการคำนวณพื้น ฐานที่เหมาะสม

เลือกราคาตัวอย่างมา 1 จุด
double priceClose = Close[10];
หาว่าราคานี้มีทั้งหมดกี่ Point
for(int i=0;i<Digits;i++)
{
priceClose=priceClose*10;
}
นำ Point ที่ได้ทั้งหมด * Volume ต่ำสุด
Print("1 Point use money : "+PointCalculate()*0.01);
คำนวณ Volume ที่สามารถใช้ได้ ต่อเงินทั้งหมด
VolumeCanUse = AccountBalance()/(PointCalculate()*0.01);
MT4 File : Note#3
ไม่มีความคิดเห็น:
แสดงความคิดเห็น