- Beranda
- Komunitas
- Pemrograman
- whats wrong with this code?
Edit Komentar Anda
whats wrong with this code?
Menjadi Anggota Sejak Oct 23, 2012
341 postingan
Jul 31, 2016 at 06:54
Menjadi Anggota Sejak Oct 23, 2012
341 postingan
if(max_spread_filter && (Ask-Bid)/myPoint>max_spread) enableopen=false;
gives a critical error when trying to backtest?
gives a critical error when trying to backtest?
if you follow the flock like sheep you always end up stepping in shit!
forex_trader_25447
Menjadi Anggota Sejak Dec 21, 2010
127 postingan
Aug 01, 2016 at 03:51
Menjadi Anggota Sejak Dec 21, 2010
127 postingan
Possible errors :
1. Type of "max_spread_filter" not "bool"
2. "myPoint" == 0.0
1. Type of "max_spread_filter" not "bool"
2. "myPoint" == 0.0
Menjadi Anggota Sejak Nov 14, 2015
315 postingan
Aug 01, 2016 at 11:27
Menjadi Anggota Sejak Nov 14, 2015
315 postingan
Divide by zero is the only critical error that can give. Basically myPoint is 0.
Menjadi Anggota Sejak Jul 29, 2011
5 postingan
Aug 04, 2016 at 05:58
Menjadi Anggota Sejak Jul 29, 2011
5 postingan
very difficult to say without seeing how u declared the variables like max_spread_filter.. at first glance altho its not required always you should bracket the execution portion after your if statement runs. If youd like me to help I'd have to see more of the code. One more thing, it doesnt look like MyPoint has any value. Again, very difficult to say just from one snippet of code bc we need to see the declarations and how the code flows.
Losers Average Losers && Never throw good $ after bad trading.
Menjadi Anggota Sejak Oct 23, 2012
341 postingan
Aug 05, 2016 at 04:01
Menjadi Anggota Sejak Oct 23, 2012
341 postingan
extern bool max_spread_filter=true;
extern double max_spread=5.0;
double myPoint, mySpread, myStopLevel,myTickValue,myTickSize,myLotValue;
int myDigits;
init:
SetPoint();
start:
bool enableopen = true;
if(max_spread_filter && (Ask-Bid)/myPoint
extern double max_spread=5.0;
double myPoint, mySpread, myStopLevel,myTickValue,myTickSize,myLotValue;
int myDigits;
init:
SetPoint();
start:
bool enableopen = true;
if(max_spread_filter && (Ask-Bid)/myPoint
if you follow the flock like sheep you always end up stepping in shit!
forex_trader_25447
Menjadi Anggota Sejak Dec 21, 2010
127 postingan
Aug 05, 2016 at 04:45
Menjadi Anggota Sejak Dec 21, 2010
127 postingan
I see some syntax errors .
You probably know some other language , and try to write as You know.
You have to write like this :
double myPoint, mySpread, myStopLevel,myTickValue,myTickSize,myLotValue;
int myDigits;
init()
{
SetPoint();
}
start()
{
bool enableopen = true;
if(max_spread_filter && (Ask-Bid)/myPoint
You probably know some other language , and try to write as You know.
You have to write like this :
double myPoint, mySpread, myStopLevel,myTickValue,myTickSize,myLotValue;
int myDigits;
init()
{
SetPoint();
}
start()
{
bool enableopen = true;
if(max_spread_filter && (Ask-Bid)/myPoint
*Penggunaan komersial dan spam tidak akan ditoleransi dan dapat mengakibatkan penutupan akun.
Tips: Memposting URL gambar/YouTube akan otomatis menyematkannya di postingan Anda!
Tips: Ketik tanda @ untuk melengkapi nama pengguna secara otomatis yang berpartisipasi dalam diskusi ini.