• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 2:19pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:19pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Trading correlation pairs by using the other pairs 729 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

  • Commercial Content
  • /
  • Reply to Thread
  • Subscribe
  • 746
Attachments: scooby-doo BOJ JPY pairs trading robot
Exit Attachments

scooby-doo BOJ JPY pairs trading robot

  • Last Post
  •  
  • 1 147148Page 149150151 429
  • 1 Page 149 429
  •  
  • Post #2,961
  • Quote
  • Nov 21, 2009 5:34am Nov 21, 2009 5:34am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting scooby-doo
Disliked
I shall probably get banned soon as their was a thread where they were knocking british traders. I publicly told them what I thought.

However, I shall still read the thread and keep in touch with Steve via external email.

All the best

Scoob.
Ignored
We would prefer you didn't get banned. Can't you quietly remove the offending posts? You are one of the most useful posters around, after all.

  • Post #2,962
  • Quote
  • Nov 21, 2009 6:00am Nov 21, 2009 6:00am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Quoting SteveHopwood
Disliked
I have put the new versions with enhanced hedging techniques into post 1 so the brains around here can check the code. The relevant functions are:

 

  1. void CheckBasketTpSlTarget(): includes the code that takes the decision that hedging is required
  2. bool SendHedgeTrades() handles the actual hedging

You are dead right, scoobs. The code is a piece of piss but the logic would have taken me a while to get around, so you saved me some brain pain there. Cheers.

Actually, what takes most of the time is: copying the changes to the second...

Ignored
5% could actually be too low as these XXJPY pair's are far ranging, looking at Friday afternoon one set of trades went from -7400 to + 2800 in an hour, although Friday's trading can be strange at the best of times.
  • Post #2,963
  • Quote
  • Nov 21, 2009 6:10am Nov 21, 2009 6:10am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting scooby-doo
Disliked
5% could actually be too low as these XXJPY pair's are far ranging, looking at Friday afternoon one set of trades went from -7400 to + 2800 in an hour, although Friday's trading can be strange at the best of times.
Ignored
It seems low to me, but I am not going to argue. 'Tis but the adding of a single word to the code to make the variable a user input so people can experiment. What do you think?

  • Post #2,964
  • Quote
  • Nov 21, 2009 6:14am Nov 21, 2009 6:14am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Quoting SteveHopwood
Disliked
It seems low to me, but I am not going to argue. 'Tis but the adding of a single word to the code to make the variable a user input so people can experiment. What do you think?

Ignored
Yes fine.

However, you no what will happen. Some will set it to 25% and with a small account will get margin called. But thats life.

What I would do is, if Demo() then they can set it to what they like, if Live then it must kick in no higher than 7%.

Scoob.
  • Post #2,965
  • Quote
  • Nov 21, 2009 6:18am Nov 21, 2009 6:18am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting scooby-doo
Disliked
Yes fine.

However, you no what will happen. Some will set it to 25% and with a small account will get margin called. But thats life.

What I would do is, if Demo() then they can set it to what they like, if Live then it must kick in no higher than 7%.

Scoob.
Ignored
Will do.

  • Post #2,966
  • Quote
  • Nov 21, 2009 6:20am Nov 21, 2009 6:20am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Quoting SteveHopwood
Disliked
Will do.

Ignored
I know you said it should be only run on demo but I think some are running it on live account. Which is a worry as its not yet finished.

But, hey ho.
  • Post #2,967
  • Quote
  • Nov 21, 2009 6:39am Nov 21, 2009 6:39am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Steve

I noticed like others did that there is a problem with the indicator when there is a new bar. It would be more accurate if someone could fix this although I must admit I dont have a clue how too.

Scoob.
  • Post #2,968
  • Quote
  • Nov 21, 2009 6:58am Nov 21, 2009 6:58am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting scooby-doo
Disliked
I know you said it should be only run on demo but I think some are running it on live account. Which is a worry as its not yet finished.

But, hey ho.
Ignored
Most likely the more experienced people are doing this; they are able to remove the code that stops the 24H bot being run live.

I am also going to add TradeLong and TradeShort to the 24H, so people with different trend-spotting methods have more control.

Which reminds me, the bot also wants a Friday close and some dead-time hours imputs.

Or are dead-time inputs really necessary? Is there likely to be enough movement in the markets to trigger a basket but insufficient to then move it to tp? What do you think?

  • Post #2,969
  • Quote
  • Nov 21, 2009 7:10am Nov 21, 2009 7:10am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Quoting SteveHopwood
Disliked
Most likely the more experienced people are doing this; they are able to remove the code that stops the 24H bot being run live.

I am also going to add TradeLong and TradeShort to the 24H, so people with different trend-spotting methods have more control.

Which reminds me, the bot also wants a Friday close and some dead-time hours imputs.

Or are dead-time inputs really necessary? Is there likely to be enough movement in the markets to trigger a basket but insufficient to then move it to tp? What do you think?

Ignored
When London closes there is a big drop in volumes. For this reason I would stop trading at 4.00pm GMT and start again at 9.00pm GMT.

Personally, Friday close should be 12.00pm GMT but I am not going to get into an argument about all the reasons for that.

One of the biggest issues is around the indicator and when new bars happen.

Scoob.
  • Post #2,970
  • Quote
  • Nov 21, 2009 7:52am Nov 21, 2009 7:52am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Steve

I have come up with a very crude hack for the indicator problem whereby not all the new bars have formed at the same time, basically we wait 2 seconds before getting new values:

for(int i = 0; i < limit; i++)
{

if(Current.Bar != Bars)
{
Current.Bar = Bars;
Sleep(2000);
}

aud = 100 - iRSI("AUDJPY"+Suffix,0,2,PRICE_WEIGHTED,i);
cad = 100 - iRSI("CADJPY"+Suffix,0,2,PRICE_WEIGHTED,i);
chf = 100 - iRSI("CHFJPY"+Suffix,0,2,PRICE_WEIGHTED,i);
eur = 100 - iRSI("EURJPY"+Suffix,0,2,PRICE_WEIGHTED,i);
gbp = 100 - iRSI("GBPJPY"+Suffix,0,2,PRICE_WEIGHTED,i);
nzd = 100 - iRSI("NZDJPY"+Suffix,0,2,PRICE_WEIGHTED,i);
usd = 100 - iRSI("USDJPY"+Suffix,0,2,PRICE_WEIGHTED,i);
Buffer[i] = (aud + cad + chf + eur + gbp + nzd + usd) / 7;

}
  • Post #2,971
  • Quote
  • Nov 21, 2009 8:17am Nov 21, 2009 8:17am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting scooby-doo
Disliked
Steve

I have come up with a very crude hack for the indicator problem whereby not all the new bars have formed at the same time, basically we wait 2 seconds before getting new values:...
Ignored
Great. I will pop that into the indi and people can re-download it in time for Sunday night. It isn't a problem for the robot as the calculation code is encapsulated within, so a bit crude doesn't really matter.

  • Post #2,972
  • Quote
  • Nov 21, 2009 8:32am Nov 21, 2009 8:32am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Quoting SteveHopwood
Disliked
Great. I will pop that into the indi and people can re-download it in time for Sunday night. It isn't a problem for the robot as the calculation code is encapsulated within, so a bit crude doesn't really matter.

Ignored
Its still a problem for the encapsulated code aswell, it needs to wait for all the new bars to have formed before caluclation RSI's etc.

However, I dont really know how long it takes for all the bars to form properly, maybe it is a matter of milliseconds and 2 seconds is too long to wait.

Maybe someone else can comment on this ? i.e. should we wait 1, 2, 3 seconds ?

Steve, you need to put Current.Bar = Bars; in the init()

Scoobs

PS. This is one thing that makes the indicator spike sometimes.
  • Post #2,973
  • Quote
  • Edited at 9:55pm Nov 21, 2009 8:53am | Edited at 9:55pm
  •  DXTrade
  • Joined Jul 2007 | Status: Take Five | 755 Posts
Hi guys
I had some spare time and made a dashboard for those trading this manually... maybe it helps

Showing the price above below 200SMA in 3 timeframes and the 15M and H1 Strength reading with a small buy/sell/wait indi.

Here's how it looks like.
Indi attached. Can't test it as it needs ticks...

Update 22.11.2009:
It's standalone now, no other indicator needed
It does not take CAD and NZD in the calculations. If you need or want it... tell me!
Showing recommended Base Lot Size.
Attached Image (click to enlarge)
Click to Enlarge

Name: dxt.gif
Size: 21 KB
Attached File
File Type: ex4 DXT Scooby.ex4   14 KB | 233 downloads
"The only successful substitute for brains is silence."
  • Post #2,974
  • Quote
  • Nov 21, 2009 9:07am Nov 21, 2009 9:07am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting DXTrade
Disliked
Hi guys
I had some spare time and made a dashboard for those trading this manually... maybe it helps

You still need the RS_GROUP_JPY Strength Index.ex4 in your indicator folder (not on the chart) but later this week I will try to include it.

Showing the price above below 200SMA in 3 timeframes and the 15M and H1 Strength reading with a small buy/sell/wait indi.

Here's how it looks like.
Indi attached. Can't test it as it needs ticks...
Ignored
Cheers Uli; that's brilliant.

There is a limit of 7 uploads to a post, so it can't go in post 1 for now. When a couple of hours of ticks have satisfied you that it works, I will put a link to it in post1.

  • Post #2,975
  • Quote
  • Nov 21, 2009 9:08am Nov 21, 2009 9:08am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting scooby-doo
Disliked
Its still a problem for the encapsulated code aswell, it needs to wait for all the new bars to have formed before caluclation RSI's etc.

However, I dont really know how long it takes for all the bars to form properly, maybe it is a matter of milliseconds and 2 seconds is too long to wait.

Maybe someone else can comment on this ? i.e. should we wait 1, 2, 3 seconds ?

Steve, you need to put Current.Bar = Bars; in the init()

Scoobs

PS. This is one thing that makes the indicator spike sometimes.
Ignored
The robot waits for 30 seconds at the start of each new candle. It would be good to get a more accurate setting for this.

  • Post #2,976
  • Quote
  • Nov 21, 2009 9:13am Nov 21, 2009 9:13am
  •  DXTrade
  • Joined Jul 2007 | Status: Take Five | 755 Posts
Quoting SteveHopwood
Disliked
Cheers Uli; that's brilliant.

There is a limit of 7 uploads to a post, so it can't go in post 1 for now. When a couple of hours of ticks have satisfied you that it works, I will put a link to it in post1.

Ignored
Thanks Steve
but wait a bit. Need some time to check it and want to integrate the RSI in the indi as well. And maybe some cosmetics once it's running.
I might be as you and make some 1,435 versions before it's perfect
"The only successful substitute for brains is silence."
  • Post #2,977
  • Quote
  • Edited at 9:33am Nov 21, 2009 9:19am | Edited at 9:33am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
I just realised the sleep for 30 seconds function is not in the 'proper' version. I will add it.

  • Post #2,978
  • Quote
  • Nov 21, 2009 9:22am Nov 21, 2009 9:22am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Quoting SteveHopwood
Disliked
I just realised the sleep for 30 seconds function is not in the 24H version. I will add it.

Ignored
30 seconds!!!!!!!!!!!!!!!!!!!!!

Jesus Steve, i dont think it needs to wait that long????????????????????
  • Post #2,979
  • Quote
  • Nov 21, 2009 9:33am Nov 21, 2009 9:33am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting scooby-doo
Disliked
30 seconds!!!!!!!!!!!!!!!!!!!!!

Jesus Steve, i dont think it needs to wait that long????????????????????
Ignored
5 seconds? There are times when we can wait for what feels like a mini ice age for a tick.

  • Post #2,980
  • Quote
  • Nov 21, 2009 9:42am Nov 21, 2009 9:42am
  •  scooby-doo
  • Joined Jul 2009 | Status: Member | 2,158 Posts
Quoting SteveHopwood
Disliked
5 seconds? There are times when we can wait for what feels like a mini ice age for a tick.

Ignored
3 seconds should be ample on a live account for all 7 bars to form unless the broker is a crook and delaying prices!!!!!!!!!!!!!!!!!
  • Commercial Content
  • /
  • scooby-doo BOJ JPY pairs trading robot
  • Reply to Thread
    • 1 147148Page 149150151 429
    • 1 Page 149 429
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021