- #6,348
- Edited Feb 19, 2010 4:04am Feb 18, 2010 4:27pm | Edited Feb 19, 2010 4:04am
- | Commercial User | Joined Apr 2007 | 8,331 Posts
- #6,358
- Edited 6:35pm Feb 18, 2010 6:29pm | Edited 6:35pm
- | Joined Nov 2009 | Status: Trader | 1,196 Posts
Trading correlation pairs by using the other pairs 843 replies
Export All pairs or selected pairs to .csv with script 3 replies
Pairs of Currency Pairs 4 replies
Trending Pairs / Ranging Pairs 0 replies
Robot trading 120 replies
DislikedAs for ATR I'm testing the scoobs 200-20-3 EA with TP and SL based on daily ATR, with lots sized accordingly. In 6 hours its outperformed the original, also using the variable RSI function I posted earlier. A few more tweaks and crude display and I will release it here if there is interest. If Steve and Scooby don't mind of course. I'm unfamiliar with proper etiquette in a situation like this.Ignored
DislikedPlease feel free to post your work. No need to wait for my permission.
Scoobs.Ignored
DislikedPlease feel free to post your work. No need to wait for my permission.
Scoobs.Ignored
Disliked... the last thing we want is multiple versions of the same robots being released by different people. I have seen this happen in other threads; the result is utter chaos.
Ignored
DislikedPlease feel free to post your work. No need to wait for my permission.
Scoobs.Ignored
In my experience so far, using ATR to calculate the stop has led to fewer large losers. I do not know whether this will continue.
Play with this version and see what you all think.
I have no idea whether this version will have more success than Scoob's original version. We all know that the Scoobs' unmodified wipes out the profits from four winners when it has a loser, but I do not know whether using ATR will make any difference. I have Sccobs' unmodified on my tiny eglobal live test account and have no intention of replacing it just yet.
We shall see.
Dislikedsteve,
want to ask you if is easy to code some money management script that close all orders instantly when your trades hit a certain percentage of profit or loss.
I have this one that hide your stop loss and profit and put trail stops, but my idea is to set stop loss or profit on %...
this one can be usefull for who trade crocodiles who not permit stop loss when you set the trade. code loked...
thankssIgnored
DislikedUse Steveīs trade manager. Follow the link at Steveīs signature. It works like a charm.Ignored
DislikedNice, off course I will try!
my idea was some thing more simpleIgnored
void ManageTrade()
{
OrderSelect(TicketNo, SELECT_BY_TICKET);
if (OrderCloseTime() > 0) return;
double digits = MarketInfo(OrderSymbol(), MODE_DIGITS);
double ask = MarketInfo(OrderSymbol(), MODE_ASK);
double bid = MarketInfo(OrderSymbol(), MODE_BID);
double point = MarketInfo(OrderSymbol(), MODE_POINT);
double AtrValue=iATR(OrderSymbol(),0,AtrPeriod,0);
double BuyTarget = NormalizeDouble(OrderOpenPrice() + AtrValue, digits);
double SellTarget = NormalizeDouble(OrderOpenPrice() - AtrValue, digits);
if (OrderType() == 0 && ask >= BuyTarget && OrderStopLoss() < OrderOpenPrice() )
{
double stop = NormalizeDouble(OrderOpenPrice() + (Bep * point), digits);
[color=RoyalBlue]if (stop - OrderOpenPrice() < MarketInfo(OrderSymbol(), MODE_LOTSTEP) ) stop = OrderOpenPrice();[/color]
bool result = OrderModify(TicketNo, OrderOpenPrice(), stop, OrderTakeProfit(), OrderExpiration(), CLR_NONE);
if (!result)
{
int err=GetLastError();
Alert(OrderSymbol(), " Scoobs 20 EMA Buy SL order modify failed with error(",err,"): ",ErrorDescription(err));
}//if (!result)
}//if (OrderType() == 0)
if (OrderType() == 1 && bid <= BuyTarget && OrderStopLoss() > OrderOpenPrice() )
{
stop = NormalizeDouble(OrderOpenPrice() - (Bep * point), digits);
[color=RoyalBlue] if (OrderOpenPrice() - stop < MarketInfo(OrderSymbol(), MODE_LOTSTEP) ) stop = OrderOpenPrice();[/color]
result = OrderModify(TicketNo, OrderOpenPrice(), stop, OrderTakeProfit(), OrderExpiration(), CLR_NONE);
if (!result)
{
err=GetLastError();
Alert(OrderSymbol(), " Scoobs 20 EMA Sell SL order modify failed with error(",err,"): ",ErrorDescription(err));
}//if (!result)
}//if (OrderType() == 1 && bid <= BuyTarget && OrderStopLoss() > OrderOpenPrice() )
}//void ManageTrade() DislikedPlease feel free to post your work. No need to wait for my permission.
Scoobs.Ignored
DislikedIn that case, here is my version coded in response to private requests for me to do so. There is more than just ECN support, so have a read of the inputs and sing out if there is any confusion.
In the hope that this will save me answering some questions, here are the new inputs and a brief explanation of their use:
[list=1][*]UseTpAtr=true; use ATR to calculate the take profit[*]AtrPeriod=14; the default ATR indi period setting[*]AtrTpMultiplier=2; multiplies the ATR reading by this figure to arrive at the take profit figure. Some traders like...Ignored
DislikedI am suffering one of my fuzzies.
Coders, please look at the blue highlighted code. It is trying to stop the robot placing stops that are too close to the market to be allowed. I don't want MODE_LOTSTEP; what do I want?
[code]void ManageTrade()
{...Ignored
DislikedSteve
You do know that your SL's are huge, so most times it will get you out of loses but when the big one comes it will wipe your account ?
ScoobsIgnored