You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Ah, our good friend
Appears that you have entered TheRealThing's world...
I'll tell you right now that Leonardo's backtests are not accurate.... I have compared his Tkimble scalper simulation to my own, and he does not have lower timeframes to compensate for price movements inside the higher timeframe bars.
I took the time to create EAs for both One Night Stand and First Strike. Neither are impressive.
Here's ONS, if you want it:
/*
"One Night Stand"
Daily Timeframe
Pairs?
Buy only on Fridays--- at one pip above the highest high of the last ten days--- if the 10 day simple moving average is above the 40 day simple moving average based on Thursday's closing price.
Sell only on Fridays--- at one pip below the lowest low of the last eight days--- if the 10 day simple moving average is below the 40 day simple moving average based on Thursday's closing price.
If you get filled on either rule, exit on Monday morning's open, or Tuesday morning's open, if Monday is a holiday.
*/
int day,
ticket;
double highestHigh, // for capturing the highest high over the past 10 days
lowestLow, // for capturing the lowest low over the past 8 days
sma40, // self expl
sma10; // self expl
bool open; // trades open?
void init() {
day = TimeDayOfWeek(TimeCurrent());
if(OrdersTotal()>0) {
open = true;
if(day!=5)
closeTrade();
}
else
open = false;
}
int start() {
if(TimeDayOfWeek(TimeCurrent())!=day)
day = TimeDayOfWeek(TimeCurrent());
if((day==5)&&(open==false)) { // check this
highestHigh = High[1];
lowestLow = Low[1];
sma40 = iMA(Symbol(),0,40,0,MODE_SMA,PRICE_CLOSE,1);
sma10 = iMA(Symbol(),0,10,0,MODE_SMA,PRICE_CLOSE,1);
for(int i=2; i<=10; i++)
if(highestHigh<High)
highestHigh = High;
for(i=2; i<=8; i++)
if(lowestLow>Low)
lowestLow = Low;
if((Ask>=highestHigh+1*Point)&&(sma10>sma40)) {
ticket = OrderSend(Symbol(),
OP_BUY,
0.1,
NormalizeDouble(Ask, Digits),
0,
NULL,
NULL,
NULL,
0,
0,
Green);
open = true;
}
if((Ask<=lowestLow-1*Point)&&(sma10<sma40)) {
ticket = OrderSend(Symbol(),
OP_SELL,
0.1,
NormalizeDouble(Bid, Digits),
0,
NULL,
NULL,
NULL,
0,
0,
Red);
open = true;
}
}
if((day!=5)&&(open==true))
closeTrade();
}
void closeTrade() {
while(OrdersTotal()>0) {
OrderSelect(0, SELECT_BY_POS);
if(OrderType()==OP_BUY)
OrderClose(OrderTicket(), OrderLots(), Bid, 0, Blue);
if(OrderType()==OP_SELL)
OrderClose(OrderTicket(), OrderLots(), Ask, 0, Blue);
}
open = false;
}
Thanks TD...
I do not need to waste my time of you checked it out...
But perhaps someone here might find the code useful...
ES
Day Indicator
Hi
Ive searched the forum and i am looking for an indicator to colour in a specific day (Friday to be exact) red for down and blue for up (the rest of the days will be white for down and empty(null) for up)
Any help please ?
Nordic
Weekly open friday
Is thier a weekly open indicator that uses fridays close as the week open ?
Or could some one modifie the attached to draw line a fridays close
Thank you
One Night Stand
Can someone code this, thank you.
Buy only on Fridays--- at one pip above the highest high of the last ten days--- if the 10 day simple moving average is above the 40 day simple moving average based on Thursday's closing price.
Sell only on Fridays--- at one pip below the lowest low of the last eight days--- if the 10 day simple moving average is below the 40 day simple moving average based on Thursday's closing price.
If you get filled on either rule, exit on Monday morning's open, or Tuesday morning's open, if Monday is a holiday.
Dangerous Secrets that Guarantee Automatic Forex Profits!!!
How to code a specific day/s to trade?
I am looking for how I can code to trade on just certain days of the week such as Tue, Wed and Thur.
Any basic code, links or EA's that contain similar code that I can learn from would be great. I'm new to coding so a little direction/placement would be appreciated.
Even an indicator that displays/indicates days, I have learn't enough to place this in my code.
Sorry if there is an existing thread but I could only find a thread on specific times to trade eg. hours to trade.....sorry again if this is in the incorrect area of the forum.
Thanks heaps,
Dono.