I'm having a trouble using SetStopLoss() and SetProfitTarget() on forex market.
I'm still newbie when comes to multicharts. So, sorry for my n00bish question.
My setting is:
Code: Select all
Multichart Version 6.1 Release (Build 3605)
Broker: Open E-Cry
Symbol: AUD/USD
Price Scale: 1/100000
Daily Limit: 1
Min Move: 1
BigPointValue: 1
Code: Select all
If marketposition = 0 then
begin
Buy("TEntry") 1 contract This Bar On Close;
end;
setstopposition;
setprofittarget(300);
setstoploss(300);
messagelog("PriceScale is ", PriceScale:10:10);
messagelog("BigPointValue is ", bigpointvalue:10:10);
messagelog("PointValue is ", PointValue:10:10);
But when I run it, it tries to set the stop to something ridiculous...
For example,
When order "Buy 1 contract@1.05259" is filled, multicharts will try to set profit target as with price $301.05259.
I put the debug log and it print out following output:
Code: Select all
PriceScale is 100000.0000000000
BigPointValue is 1.0000000000
PointValue is 0.0000100000
Thanks,
Felix