Forex Factory
  • Login

  • Username: Password:
  • 4:58am

  • Search
  • Home

  • Forums

  • Trades

  • Calendar

  • News

  • Market

  • Brokers

Options

Search
Search
Search

Subscribe to Thread

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

  • Commercial Content
  • /
  • Reply to Thread
  • 874

Still Basketting

  • Last Post
  • First Unread
  •  
  • 1 7374Page 757677 214
  •  
  • Post# 1,481
  • Quote
  • Nov 15, 2012 7:42am
  • afolabiay
    Commercial Member | 211 Posts | Joined May 2012
Please i need someone to code the script for buy and sell to this pair only cause of my equity i need to trade basket cause i love it these are pairs EURUSD GBPUSD EURJPY GBPJPY

someone should kindly help me on this i tried to modify the buy and sell script but it only open one order
  • Post# 1,482
  • Quote
  • Nov 15, 2012 7:57am
  • vadlapatis
    Joined Nov 2012 | 112 Posts | Status: Member
Quoting afolabiay
Please i need someone to code the script for buy and sell to this pair only cause of my equity i need to trade basket cause i love it these are pairs EURUSD GBPUSD EURJPY GBPJPY

someone should kindly help me on this i tried to modify the buy and sell script but it only open one order
Hello afolabiay

please use this to stop executing that command in buy or sell script /* ---- */

here goes the example

/* TradeExists = CheckIfTradeAlreadyExists("EURGBP") ;
if (!TradeExists) ticket = OrderSend("EURGBP",OP_BUY, Lot, MarketInfo("EURGBP",MODE_ASK), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;

TradeExists = CheckIfTradeAlreadyExists("GBPCHF") ;
if (!TradeExists) ticket = OrderSend("GBPCHF",OP_SELL, Lot, MarketInfo("GBPCHF",MODE_BID), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;

TradeExists = CheckIfTradeAlreadyExists("CHFJPY") ;
if (!TradeExists) ticket = OrderSend("CHFJPY",OP_BUY, Lot, MarketInfo("CHFJPY",MODE_ASK), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;*/
  • Post# 1,483
  • Quote
  • Nov 15, 2012 9:58am
  • Pinhead
    Joined Mar 2010 | 282 Posts | Status: Take their money and run
Here's Steve Hopwood's Multipurpose Basket Manager EA for anyone interested.
Attached File
File Type: mq4 MPBM.mq4   17 KB | 166 downloads
  • Post# 1,484
  • Quote
  • Nov 15, 2012 10:04am
  • afolabiay
    Commercial Member | 211 Posts | Joined May 2012
Quoting vadlapatis
Hello afolabiay

please use this to stop executing that command in buy or sell script /* ---- */

here goes the example

/* TradeExists = CheckIfTradeAlreadyExists("EURGBP") ;
if (!TradeExists) ticket = OrderSend("EURGBP",OP_BUY, Lot, MarketInfo("EURGBP",MODE_ASK), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;

TradeExists = CheckIfTradeAlreadyExists("GBPCHF") ;
if (!TradeExists) ticket = OrderSend("GBPCHF",OP_SELL, Lot, MarketInfo("GBPCHF",MODE_BID),...

thanks for your response i tried it this is the script i try to modify

//+------------------------------------ ------------------------------+
//| mIBFXHedge |
//| Copyright © 2008, Julius Figueroa |
//| trader101@Optonline.net |
//+------------------------------------ ------------------------------+
#property copyright "Copyright © 2008, Julius Figueroa"
#property link "trader101@optonline.net"

#property show_inputs
#include <WinUser32.mqh>
#include <stdlib.mqh>

extern double Lot = 0.01;
extern int MagicNumber=419;
extern string TradeComment="";


bool CheckIfTradeAlreadyExists(string symbol)
{
if (OrdersTotal()==0) return(false);
for (int cc=0; cc<OrdersTotal();cc++)
{
OrderSelect(cc, SELECT_BY_POS);
if (OrderSymbol()==symbol && OrderMagicNumber()==MagicNumber) return(true);
}
return(false);

}// end bool CheckTrendExists()

//+------------------------------------ ------------------------------+
//| script program start function |
//+------------------------------------ ------------------------------+
int start()
{

int TradesSent=0;

bool TradeExists = CheckIfTradeAlreadyExists("GBPUSD") ;
if (!TradeExists) int ticket = OrderSend("GBPUSD",OP_BUY, Lot, MarketInfo("GBPUSD",MODE_ASK), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;

TradeExists = CheckIfTradeAlreadyExists("EURUSD") ;
if (!TradeExists) ticket = OrderSend("EURUSD",OP_BUY, Lot, MarketInfo("EURGBP",MODE_ASK), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;

TradeExists = CheckIfTradeAlreadyExists("GBPJPY") ;
if (!TradeExists) ticket = OrderSend("GBPJPY",OP_BUY, Lot, MarketInfo("GBPCHF",MODE_ASK), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;

TradeExists = CheckIfTradeAlreadyExists("EURJPY") ;
if (!TradeExists) ticket = OrderSend("EURJPY",OP_BUY, Lot, MarketInfo("CHFJPY",MODE_ASK), 2, NULL, NULL, TradeComment, MagicNumber, 0, CLR_NONE);
if (ticket > -1) TradesSent++;

MessageBox("This script opened " + TradesSent + " trades.","Information");

return(0);
}
//+------------------------------------ ------------------------------+
  • Post# 1,485
  • Quote
  • Nov 15, 2012 10:33am
  • daemon_delux
    Joined Dec 2011 | 839 Posts | Status: Charting the trades ...
Quoting afolabiay
thanks for your response i tried it this is the script i try to modify

//+------------------------------------ ------------------------------+
//| mIBFXHedge |
//| Copyright © 2008, Julius Figueroa |
//| trader101@Optonline.net |
//+------------------------------------ ------------------------------+
#property copyright "Copyright © 2008, Julius Figueroa"
#property link "trader101@optonline.net"

#property...
And does it work or not?
Please, just slap me around if I'm being silly ...
  • Post# 1,486
  • Quote
  • Nov 15, 2012 10:36am
  • dryclean
    Joined Oct 2008 | 1,744 Posts | Status: Sailing for pips
4HR TF
Looking to see if PA will rise back up to resistance
get ready to bail or make tight stops when it gets close
Attached Image (click to enlarge)
Click to Enlarge

Name: kos.gif
Size: 13 KB
  • Post# 1,487
  • Quote
  • Nov 15, 2012 10:55am
  • kroote
    Joined Oct 2010 | 21 Posts | Status: Member
Looks like we have divergence on the 15m. Think this is a short op?
Attached Image (click to enlarge)
Click to Enlarge

Name: Divergence on the 15m.PNG
Size: 17 KB
  • Post# 1,488
  • Quote
  • Nov 15, 2012 11:00am
  • sanmiguell
    Joined Feb 2009 | 27 Posts | Status: Member
Hi people i don't have nice results most of all in GBPCHF & USDCHF so is better to reverse them, but how to do this? I need to close the opened position the open againg opposite?
Thanks!
  • Post# 1,489
  • Quote
  • Nov 15, 2012 11:09am
  • kroote
    Joined Oct 2010 | 21 Posts | Status: Member
Quoting sanmiguell
Hi people i don't have nice results most of all in GBPCHF & USDCHF so is better to reverse them, but how to do this? I need to close the opened position the open againg opposite?
Thanks!
open Navigator and right click TradeHedgeBUYALL and click Modify and scroll down to GBPCHF and change OP_BUY TO OP_SELL and MODE_ASK to MOD_BID and then do the op. for the TradeHedgeSELLALL
  • Post# 1,490
  • Quote
  • Nov 15, 2012 11:09am
  • ~bull.bear~ ● Online
    Joined Sep 2012 | 441 Posts | Status: Trade Smart !!!
Quoting kroote
Looks like we have divergence on the 15m. Think this is a short op?
2 possibilities ,correction or reverse to downside at this time. As usual.
**Keep Simple**
  • Post# 1,491
  • Quote
  • Nov 15, 2012 12:08pm
  • afolabiay
    Commercial Member | 211 Posts | Joined May 2012
Quoting daemon_delux
And does it work or not?
it does not it open only gu order only
  • Post# 1,492
  • Quote
  • Nov 15, 2012 1:00pm
  • Pinhead
    Joined Mar 2010 | 282 Posts | Status: Take their money and run
Quoting afolabiay
Please i need someone to code the script for buy and sell to this pair only cause of my equity i need to trade basket cause i love it these are pairs EURUSD GBPUSD EURJPY GBPJPY

someone should kindly help me on this i tried to modify the buy and sell script but it only open one order
Here are the scripts you asked for.
Attached Files
File Type: mq4 4 BUY.mq4   2 KB | 125 downloads
File Type: mq4 4 SELL.mq4   2 KB | 109 downloads
  • Post# 1,493
  • Quote
  • Nov 15, 2012 1:01pm
  • dryclean
    Joined Oct 2008 | 1,744 Posts | Status: Sailing for pips
Quoting Pinhead
Here's Steve Hopwood's Multipurpose Basket Manager EA for anyone interested.
Doesnt not seam to be working, do you have a link to where this came form I can't find it on steves site
  • Post# 1,494
  • Quote
  • Nov 15, 2012 1:11pm
  • TheMaxx
    Joined Jul 2009 | 651 Posts | Status: Change my pitch up
Quoting dryclean
Doesnt not seam to be working, do you have a link to where this came form I can't find it on steves site
http://www.stevehopwoodforex.com/php....php?f=21&t=64
  • Post# 1,495
  • Quote
  • Nov 15, 2012 1:44pm
  • Pinhead
    Joined Mar 2010 | 282 Posts | Status: Take their money and run
Quoting dryclean
Doesnt not seam to be working, do you have a link to where this came form I can't find it on steves site
Did you input the same magic number as the basket script? I had the same problem until i did that.
  • Post# 1,496
  • Quote
  • Nov 15, 2012 1:53pm
  • afolabiay
    Commercial Member | 211 Posts | Joined May 2012
Quoting Pinhead
Here are the scripts you asked for.
thanks its works
  • Post# 1,497
  • Quote
  • Nov 15, 2012 2:23pm
  • Pinhead
    Joined Mar 2010 | 282 Posts | Status: Take their money and run
Quoting afolabiay
thanks its works
No problem.
  • Post# 1,498
  • Quote
  • Nov 15, 2012 2:52pm
  • eki
    Joined Jan 2008 | 10 Posts | Status: Member
Hi Goodman, please ca you help me to get your wonderful system working for me as i have tried to load it as explained in the forum but i can't get it working.
Please i will be more than grateful if you can help me out.
Kind regards.
Eki .
  • Post# 1,499
  • Quote
  • Nov 15, 2012 3:00pm
  • Thoughts
    Joined Jul 2012 | 141 Posts | Status: Member
Quoting eki
Hi Goodman, please ca you help me to get your wonderful system working for me as i have tried to load it as explained in the forum but i can't get it working.
Please i will be more than grateful if you can help me out.
Kind regards.
Eki .
whats the problem..
  • Post# 1,500
  • Quote
  • Nov 15, 2012 4:14pm
  • omahr
    Joined Nov 2012 | 9 Posts | Status: Member
Thanks KOS good thread. Am trying the HAS for a test. Myself I use the core 5 chart and as such my offline chart is the of the core 5 seen here on h4

http://my.jetscreenshot.com/demo/20121115-opgu-109kb

I use highs and lows as reference points (gann points rather then fibs)

I first start off with this indicator

http://my.jetscreenshot.com/demo/20121115-uons-49kb

Takes the active candle for Week, day, and H4 shows the pip value of each pair. I only trade when w1 d1 h4 are in alignment majority wise. I then flip to the core 5 chart and look at location of the highs and lows don't want to be too close near a hh etc etc.

AM testing the HAS on M30 for re-entries all the best
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Commercial Content
  • /
  • Still Basketting
  • Reply to Thread
    • 1 7374Page 757677 214
9 traders viewing now, 6 are members: tnavi, AhmadYt, cfta, brucech, ubc496, kinca
  • More

©2013 Forex Factory, Inc. / Terms of Use / Privacy Policy

Forex Factory® is a registered trademark.

Connect

  • Facebook
  • Twitter
  • RSS

Company

  • About FF
  • FF Blog
  • Careers at FF
  • Advertising
  • Contact FF

Products

  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer

Website

  • Homepage
  • Search
  • User Guide
  • Member List
  • Online Now
  • Report a Bug