I want to have a limit order placed, and have had issues in the past with setting limits to close to the market and having it rejected with a error code that meant it was to close to market to be a limit order.
Lets say I have the price I want to enter, the current close of the market, and all the other variables. What would I use to see if the desired price is close enough ( or not ) to be a market order versus a limit? Would it be if price was with in the spread, and/or would I also include slippage in that as well?
If You have STOPLEVEL=0 , probably this is Real NDD broker. Orders have to be sent without TP or SL (must be 0.0) The SPREAD still exist, but You have to be able to set TP or SL even inside SPREAD, after order is send.
A zero value of MODE_STOPLEVEL means either absence of any restrictions on the minimal distance for Stop Loss/Take Profit or the fact that a trade server utilizes some external mechanisms for dynamic level control, which cannot be translated in the client terminal. In the second case, GetLastError() can return error 130, because MODE_STOPLEVEL is actually 'floating' here.
I am not having a issue with setting sl/tp . I was trying to find a way to detect when placing a limit would be to close to the actual price, resulting in the need for a market order.
I setup a function to detect with in range, using the appropriate ask/bid + Spread depending on direction. I was just curious if there was anything else I should be looking out for.
Why would it be a crutch if you are doing essentially the same thing anyways.
Sure, noted: I could just set a condition to see when the price gets to my supposed limit order and execute it at market. I have never heard the term 'Api traders' . I am not using any application interfaces, so it can't be that you are talking about. Googling it only brings up the usual suspects ( brokers that offer a api, etc,.... ) .
Also, I don't set stops with the order at the same time either, the broker doesn't allow it,.... why is it worth mentioning this?
Anyways, thanks for the suggestion, even though it isn't related to the topic
benchmarkpro posted: My opinion is that limit orders are a crutch for NON-API traders that allows them to place a request with their broker to open or execute a trade at a specific price, etc..
this is a band-aid for non-api traders.
Api traders, on the other hand, do not need limit orders...
Api traders write custom code that will wait patiently for the market price to reach a specific price and then it will open the trade on the fly in real time...
Edit: i personally do not set takeprofit and/or stoploss while opening a trade, instead i first open the trade and then i set any desired stop loss or takeprofit...
You need to tell me what broker you use......I have been looking for a broker that gives me the price I execute my trade at.....irrespective of how fast the market is moving, or that beats the Limit Order pricing already sitting on their server.
고위험 경고: 외환 거래는 모든 투자자에게 적합하지 않을 수 있는 높은 수준의 위험을 수반합니다.
레버리지는 추가적인 위험 및 손실 노출을 만듭니다. 외환 거래를 결정하기 전에 투자 목표, 경험 수준 및 위험 허용 오차를 신중하게 고려하십시오.
초기 투자의 일부 또는 전부를 잃을 수 있습니다. 잃을 여유가 없는 돈을 투자하지 마십시오. 외환 거래와 관련된 위험에 대해 스스로 교육하고 궁금한 점이 있으면 독립 금융 또는 세무사에게 조언을 구하십시오.
모든 데이터 및 정보는 정보 제공 목적으로만 있는 그대로 제공되며 거래 목적이나 조언을 위한 것이 아닙니다.
과거의 성과는 미래의 결과를 나타내는 것이 아닙니다.