Hi guys
I would appreciate so mush if someone could program this very small EA for me, I have been trying a few days now with only my knowledge that I got in school from programming ten years ago, but I am just not getting what I am looking for.
If someone could help me it would be much appreciated.
Open sell order
Open buy order
{Open two orders at the same time, like hedging}
int market
market = (the current market price) {Like 1.2200}
while count = true
{
if market = market + 20 pips
{
then open sell order
market = (the current market price again)
count = true (the EA must run until I stop it)
}
if market = market - 20 pips
{
then open buy order and market = market price
market = (the current market price again)
count = true (the EA must run until I stop it)
}
}
What I am looking for is as the price is going higher I want to open up a sell order every 20 pips, and as the price is going lower I want to open a buy order every 20 pips.
Kind regards
I would appreciate so mush if someone could program this very small EA for me, I have been trying a few days now with only my knowledge that I got in school from programming ten years ago, but I am just not getting what I am looking for.
If someone could help me it would be much appreciated.
Open sell order
Open buy order
{Open two orders at the same time, like hedging}
int market
market = (the current market price) {Like 1.2200}
while count = true
{
if market = market + 20 pips
{
then open sell order
market = (the current market price again)
count = true (the EA must run until I stop it)
}
if market = market - 20 pips
{
then open buy order and market = market price
market = (the current market price again)
count = true (the EA must run until I stop it)
}
}
What I am looking for is as the price is going higher I want to open up a sell order every 20 pips, and as the price is going lower I want to open a buy order every 20 pips.
Kind regards
Live happens 5 minutes at a time...