Menu
Brokers
MT4 Forex Brokers
MT5 Forex brokers
PayPal Brokers
Skrill Brokers
Oil Trading Brokers
Gold Trading Brokers
Web Browser Platform
Brokers with CFD Trading
ECN Brokers
Bitcoin FX Brokers
PAMM Forex Brokers
With Cent Accounts
With High Leverage
Cryptocurrency Brokers
Forums
All threads
New threads
New posts
Trending
Search forums
What's new
New threads
New posts
Latest activity
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Forums
Trading Platforms
MetaTrader Expert Advisors
Tiny EA adjustment
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
[QUOTE="3ther8up222, post: 210838, member: 87233"] Very easy, I've coded an EA like this before. The standard functions iOpen will be the one used for this plan as it returns a value/price if you wish to execute the order on the previous candle . As for the Buy/Sell conditions, I'm not clear on them as you haven't explained them. However, "X Points" away from the previous candle, or current candle? If current candle, then you'll just use MarketInfo function: "MarketInfo(_Symbol,MODE_STOPLEVEL);" of course, make the data type a double, name the variable something like "minimum_distance", then use it in the OrderSend() function in the price parameter of that function like so: Ordersend(Bid-minimum_distance) (Fore sells) and OrderSend(Ask+minimum_distance) for Buys. Since you stated that you wanted the order execution 10*Points away, the minimum distance is usually 10 points away anyways on most brokers, so it'll work in your favor. I know this is a late reply, but I'm new to this forum. [/QUOTE]
Insert quotes…
Verification
Post reply
Top
Bottom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…