How you use Point is wayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy wrong.
Fix it and the error will go away instantly.
I've re-read your post on my other thread, but I'm obviously still not understanding the impact of Point in relation to + Point, - Point, * Point...
double Point The current symbol point value in the quote currency.
It doesn't tell me much...
Besides, error code 130 is invalid stops? So surely it has something more to do with that despite my being wrong in the use of Point?
If you do more homework, none of this problems would occurred. It is not new problem you know.
There are many examples. Just google it.
if( OpenOrdersThisPair(Symbol()) == 0 && Stored_BuyPrice > BuyStopPrice + Point ) { BuyTicketOrder1 = OrderSend(Symbol(),OP_BUYSTOP,LotSize_Buy,Stored_BuyPrice,3,BuyStopPrice,btp1,NULL,MagicNumber1,0,Green); BuyTicketOrder2 = OrderSend(Symbol(),OP_BUYSTOP,LotSize_Buy2,Stored_BuyPrice,3,BuyStopPrice,btp2,NULL,MagicNumber1,0,Green); BuyTicketOrder3 = OrderSend(Symbol(),OP_BUYSTOP,LotSize_Buy3,Stored_BuyPrice,3,BuyStopPrice,btp3,NULL,MagicNumber1,0,Green); BuyTicketOrder4 = OrderSend(Symbol(),OP_BUYSTOP,LotSize_Buy4,Stored_BuyPrice,3,BuyStopPrice,btp4,NULL,MagicNumber1,0,Green); ...I always Google everything first. I even try to use the search function at the top and then filter for forums. It does not seem to be that great even when searching very broad topics surrounding my issues.
Even if I changed it to just this ^ it still pushes out OrderSend error 130. Even if I drop out: && Stored_BuyPrice > BuyStopPrice + Point entirely it still pops up with that error.
Thanks for your post regarding Point... But in this case regarding the error alone, I don't think it will instantly fix my error code 130.
I understand error 130 and I am convinced it is to do with one of 3 things:
- Stop loss is too close to the market price
- TP is too close to the market price
- Placing pending order too close to the market price
I guess there is some kind of 'code' of conduct on programming forums. It seems if I don't word my questions wisely, I get shot down and disregarded. Quite odd when I am completely self-taught with no programming background at all.
Sorry if what I am asking is too much.
Thanks for your help anyway.
DomGilberto, I believe that you have been asked a number of times to limit the width of your code, yet you continue to make posts that requires scrolling back and forth to read them
Is that easier like that ^^?
Am working on it!
I think it has something to do with price being too close to the pending order (or within the FREEZE_LEVEL) entry price.
I use buystops and sellstops. They update and change every hour for new stop levels, tps and lot sizing. I figured, if price moves right up on the hour just shy of my entry and requires a new calculation, then if its too close it will fail and send Error 130!?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Really appreciate any help or thoughts....