greentrader Posted December 9, 2011 Report Share Posted December 9, 2011 Thanks hitescape. I wasn,t sure which one to use and his chart looks differant than mine but maybe it is just the settings. I live on the east coast of Canada so i trade the USA market does anyone trade just the usa market? Quote Link to comment Share on other sites More sharing options...
hitescape Posted December 9, 2011 Report Share Posted December 9, 2011 (edited) @ greentrader I too am in the Eastern Time zone and get up to trade every morning at 2:00 AM - sleep has become an unnecessary luxury! My experience is that the market frequently comes to life at the open of the European session (2:00 AM ET), London opens an hour later and the moves are generally finished by 11:00 ET. You can trade the NY only but I find it to be more difficult as it tends to be dominated by news. For me, I trade from 2:00 AM until about 10:00 AM. I generally won't take any new trades after 10:00 and only carry open trades until the market stops moving and generally try to be flat by 1:00 PM at the latest. Today is a perfect example why. The first move started at 2:20, and went 152 pips up and peaked at 6:05 AM. By 9:05 AM it had dropped 115 pips. I was able to profitably trade both of those swings and then quit. If I had traded NY only, I doubt that there would have been any profitable trades unless you used signals that had been indicated before the NY open, ignored news and didn't always wait to get trade confirmation from the USDCHF. One trading friend described the market as like PacMan. It opens and immediately starts running to one side gobbling up all of the stops along the way then suddenly reversing direction and running full tilt in the other direction eating all of the freshly placed stops left in his wake. When there are no more stops nearby PacMan returns back to it's home (near where he started the day) full of pips and ready to rest to start all over again the next day. That description seems to fit today's action and, surprisingly enough, it is not at all uncommon because the market generally is ranging 80% or more of the time. For that reason I tend to use the ADR less current range for my TP on the first trade as I want to get out just before the time that PacMan is getting ready to turn! Like you, my charts also are different than psaini's charts and the reason is that different brokers start their trading day at different times. I believe that psaini once stated that his broker was GMT + 0. My broker starts their day based on ET which is GMT-5. Other brokers use whatever time they choose to operate. This causes indicators like daily highs and lows, PIVOTS being calculated based on different start points. The end result is that the values for my Pivots do not equal the values that psiani uses and these differences can be substantial. For that reason, I do not use Pivots or previous day High or Lows. If you think about it, there are 24 time zones so there are 24 possible start times so who knows which one correct? Note: There are many other indicators that give different results depending on what time the broker starts the day. Edited December 9, 2011 by hitescape clarity Quote Link to comment Share on other sites More sharing options...
hermes Posted December 10, 2011 Report Share Posted December 10, 2011 Pacman market? That's basic procedure of specialists and market makers. Personally, I like Pacman he is an excellent boxer. Then wait for candlestick formation to show the stop losses hunting is over. Hermes Quote Link to comment Share on other sites More sharing options...
FORME Posted December 10, 2011 Report Share Posted December 10, 2011 Thanks Psaini......Hope success with this system........... http://www.multiupload.com/U50PZHJPMX Trading only 5 n 15 min tf. Quote Link to comment Share on other sites More sharing options...
freddy Posted December 10, 2011 Report Share Posted December 10, 2011 Hi all, I modified some scripts to fit Psaini's trading style: Open _multi_BUY_withSL&TP___B_eurusd-B_eurjpy-S_usdchf.mq4 Open _multi_SELL_withSL&TP___S_eurusd-S_eurjpy-B_usdchf.mq4 The first one will BUY EURUSD & EURJPY and SELL USDCHF The second one will SELL EURUSD & EURJPY and BUY USDCHF For those unfamiliar with the scripts, you place scripts in your Metatrader .../Experts/scripts folder. You can change Lot size, SL and TP. I put value of 0.01 lot, and a stop loss of 20 pips (200 for 5digits brokers) and Take Profit of 30 pips. If you don't want SL & TP just put 0 in the fields. If you want to use it and always use same values and don't want to bother to change them each time you call the script, you can change them inside the code. To do this, you need to right click on the script (inside nagigator) and choose "Modify", it will open Metatrader Editor, you will find these lines: extern int magic=2000; extern double Lots = 0.01; extern int StopLoss = 200; extern int TakeProfit = 300; and put the numbers you need, for instance if you want to always trade 1 lot, and use no SL, you replace 0.01 by 1.0 and replace 200 by 0, so you will get these lines: extern int magic=2000; extern double Lots = 1.0; extern int StopLoss = 0; extern int TakeProfit = 300; and so on. Once you made the changes, don't forget to compile using the button "Compile" and now the changes will be remembered each time you call the script. Another trick, if you want to bypass the popup "setting inputs" 'window when you call the script (if you use always the same values and don't have to change it each time) you can find this line: #property show_inputs just put // in front the line, like that: //#property show_inputs compile again, and that's it. Do these trials on demo first to see how it works and then good luck in your trading! freddy You will find the scripts and a pic , (on the pic i used both scripts, just to show what it looks like) here: http://www.multiupload.com/07QH722SAD Sesshoumaru, PIPHORE and psaini1973 3 Quote Link to comment Share on other sites More sharing options...
hitescape Posted December 10, 2011 Report Share Posted December 10, 2011 Pacman market? That's basic procedure of specialists and market makers. Personally, I like Pacman he is an excellent boxer. Then wait for candlestick formation to show the stop losses hunting is over. Hermes I can't take credit for PacMan but it was explained in simple terms so that I could understand it! Candlesticks - On what TF? Candlesticks have the ability to morph themselves into other shapes when you change TFs. Quote Link to comment Share on other sites More sharing options...
hermes Posted December 10, 2011 Report Share Posted December 10, 2011 Freddy, are the scripts for PIP EA? Candlesticks formation on that TF you enter trade. Cheers Hermes Quote Link to comment Share on other sites More sharing options...
freddy Posted December 11, 2011 Report Share Posted December 11, 2011 Freddy, are the scripts for PIP EA? Candlesticks formation on that TF you enter trade. Cheers Hermes Hi Hermes, no, it is not for PIPA EA, it is for manual trading and to make it easier and faster when you place trades following the strategy used by Psaini. Like any script, it is for "one shot", you have to make your decision first, the trades will be placed automatically using the settings you have defined. Sorry, i don't understand what you want to know in your second part :"Candlesticks formation on that TF you enter trade." could you elaborate? Regards, freddy Quote Link to comment Share on other sites More sharing options...
psaini1973 Posted December 11, 2011 Author Report Share Posted December 11, 2011 @ freddy: Thanks freddy for the help , i am really gratefull to you for all the time n effort invested by you in making of this script, i really wonder how i was entering and exiting my orders without the scripts, its so easy with the help of scripts and so fast, it also helps to make a few pips extra as execution of trades is done simultaneously. I have tested these scripts for the last couple of days and they work flawlessly... Thanks once again. freddy and alansim 2 Quote Link to comment Share on other sites More sharing options...
Roels Major Posted December 11, 2011 Report Share Posted December 11, 2011 (edited) This is an EA code to close All Trade //+------------------+ //| Close Everything | //|------------------+ // used for verbose error logging #include <stdlib.mqh> //+-------------+ //| Custom init | //|-------------+ // Called ONCE when EA is added to chart or recompiled int init() { Comment(" "); Print("Init complete - script"); } //+----------------+ //| Custom DE-init | //+----------------+ // Called ONCE when EA is removed from chart int deinit() { Comment(" "); Print("DE-Init complete - script"); } //+-----------+ //| Main | //+-----------+ // Called EACH TICK and each Bar[] int start() { CloseEverything(); } // start() //+-----------------+ //| CloseEverything | //+-----------------+ // Closes all OPEN and PENDING orders int CloseEverything() { int myTyp; int i; for( i=(OrdersTotal()-1); i>=0; i-- ) { OrderSelect(i, SELECT_BY_POS); if(OrderMagicNumber()==200809241653) { switch( OrderType() ) { //Close opened long positions case OP_BUY :CloseBuy("CLOSEEVERYTHING script BUY"); break; //Close opened short positions case OP_SELL :CloseSell("CLOSEEVERYTHING script SELL"); break; } }//magic Sleep(500); } //for } // closeeverything void CloseBuy (string myInfo) { int gle; int cnt; int loopcount=0; while(true) { OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),2,White); gle=GetLastError(); if(gle==0) { Print("CLOSE BUY "+myInfo+" Ticket="+OrderTicket()+" SL="+OrderStopLoss()+" TP="+OrderTakeProfit() ); break; } else { Print("-----ERROR----- CLOSE BUY PROFIT Bid="+MarketInfo(OrderSymbol(),MODE_BID)+" error="+gle+" "+ErrorDescription(gle)); Sleep(500); RefreshRates(); } loopcount++; if(loopcount>25) { Alert("Order failed to CLOSE - See Journal for errors"); break; } }//while }//closebuy void CloseSell (string myInfo) { int gle; int cnt; int loopcount=0; while(true) { OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),2,Red); gle=GetLastError(); if(gle==0) { Print("CLOSE SELL "+myInfo+" Ticket="+OrderTicket()+" SL="+OrderStopLoss()+" TP="+OrderTakeProfit() ); break; } else { Print("-----ERROR----- CLOSE SELL PROFIT Ask="+MarketInfo(OrderSymbol(),MODE_ASK)+" error="+gle+" "+ErrorDescription(gle)); Sleep(500); RefreshRates(); } loopcount++; if(loopcount>25) { Alert("Order failed to CLOSE - See Journal for errors"); break; } }//while }//closesell This is an EA code to open 2 Trades at the same time include TP, SL, lot, and Magic No : //+------------------------------------------------------------------+ //| [EA]2Become1-JustLikeTheSpiceGirlsSong.mq4 | //| Copyright © 2009, Viking234.Com. | //| http://www.viking234.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2009, Viking234.Com." #property link "http://www.viking234.com" // http://www.forexfactory.com/showthread.php?p=2997450&posted=1#post2997450 // 4Shared file is WORKING VERSION! // Distributed under GPL (http://www.gnu.org/licenses/gpl.txt) // Donation? Very Welcome > www.viking234.com side bar. =) extern string Pair_0 = "EURUSD"; extern double Pair_0_Lots = 1.0; extern int Pair_0_TP = 250; extern int Pair_0_SL = 250; extern int Pair_0_OrdType = 0; /* 0 Buying position (default for else then 0 and 1). 1 Selling position. */ extern string Pair_1 = "USDCHF"; extern double Pair_1_Lots = 1.0; extern int Pair_1_TP = 250; extern int Pair_1_SL = 250; extern int Pair_1_OrdType = 1; /* 0 Buying position (default for else then 0 and 1). 1 Selling position. */ extern string OrdType = "0=Buying position. 1=Selling position."; extern int Slippage = 30; extern int MagicNumbers = 567; bool KillEmAll=false; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- if(KillEmAll==true) { Comment("\n\nJust 2 Become 1 DONE!"); return(0); } int kabbi=OrdersTotal(),sittong=0,dhuwe=0,karcis; double argena=0,TP=0,SL=0; for(int a=0;a<kabbi;a++) { if(OrderSelect(a,SELECT_BY_POS,MODE_TRADES)) { if(OrderMagicNumber()!=MagicNumbers) continue; if(OrderSymbol()==Pair_0) sittong++; else if(OrderSymbol()==Pair_1) dhuwe++; } } if(sittong==0) { if(Pair_0_OrdType>2) Pair_0_OrdType=0; if(Pair_0_OrdType==OP_BUY) { argena=MarketInfo(Pair_0,MODE_ASK); if(Pair_0_SL==0) SL=0; else SL=argena-Pair_0_SL*MarketInfo(Pair_0,MODE_POINT); if(Pair_0_TP==0) TP=0; else TP=argena+Pair_0_TP*MarketInfo(Pair_0,MODE_POINT); } else { argena=MarketInfo(Pair_0,MODE_BID); if(Pair_0_SL==0) SL=0; else SL=argena+Pair_0_SL*MarketInfo(Pair_0,MODE_POINT); if(Pair_0_TP==0) TP=0; else TP=argena-Pair_0_TP*MarketInfo(Pair_0,MODE_POINT); } karcis=OrderSend(Pair_0,Pair_0_OrdType,Pair_0_Lots,argena,Slippage,SL,TP,"Viking234.Com",MagicNumbers,0,Yellow); if(karcis<0) { Print("Something wrong with this order on "+Pair_0+" error#"+GetLastError()); return(0); } } if(dhuwe==0) { if(Pair_1_OrdType>1) Pair_1_OrdType=0; if(Pair_1_OrdType==OP_BUY) { argena=MarketInfo(Pair_1,MODE_ASK); if(Pair_1_SL==0) SL=0; else SL=argena-Pair_1_SL*MarketInfo(Pair_1,MODE_POINT); if(Pair_1_TP==0) TP=0; else TP=argena+Pair_1_TP*MarketInfo(Pair_1,MODE_POINT); } else { argena=MarketInfo(Pair_1,MODE_BID); if(Pair_1_SL==0) SL=0; else SL=argena+Pair_1_SL*MarketInfo(Pair_1,MODE_POINT); if(Pair_1_TP==0) TP=0; else TP=argena-Pair_1_TP*MarketInfo(Pair_1,MODE_POINT); } karcis=OrderSend(Pair_1,Pair_1_OrdType,Pair_1_Lots,argena,Slippage,SL,TP,"Viking234.Com",MagicNumbers,0,Yellow); if(karcis<0) { Print("Something wrong with this order on "+Pair_1+" error#"+GetLastError()); return(0); } } if(sittong>0&&dhuwe>0) KillEmAll=true; //---- return(0); } //+------------------------------------------------------------------+ Note: After test EA did not work for ECN....Need help here Edited December 12, 2011 by Roels Major Quote "You Ain't Seen Nothing Yet!". Link to comment Share on other sites More sharing options...
PIPHORE Posted December 11, 2011 Report Share Posted December 11, 2011 I've posted ADT_closeall script some pages back if anyone interested.... Quote Link to comment Share on other sites More sharing options...
hermes Posted December 11, 2011 Report Share Posted December 11, 2011 Freddy the Candlesticks are for hitscape. On what post is the original script? Thanks Hermes Quote Link to comment Share on other sites More sharing options...
freddy Posted December 12, 2011 Report Share Posted December 12, 2011 Freddy the Candlesticks are for hitscape. On what post is the original script? Thanks Hermes look at my post#1038 in this thread. Quote Link to comment Share on other sites More sharing options...
PIPHORE Posted December 12, 2011 Report Share Posted December 12, 2011 @freddy, the script cannot work on stp/ecn type broker if you put SL and TP > 0 in it, in other words on market execution did not work if you put SL/TP >0 BUT on broker which uses instant execution it works if you can make modification a bit it would be great, many thanks Quote Link to comment Share on other sites More sharing options...
psaini1973 Posted December 12, 2011 Author Report Share Posted December 12, 2011 Took a trade going no where, taking too much time, had to close. Loss of $ 17 Check Out: http://img266.imageshack.us/img266/1725/eur55.gif http://img266.imageshack.us/img266/1725/eur55.gif Quote Link to comment Share on other sites More sharing options...
hitescape Posted December 12, 2011 Report Share Posted December 12, 2011 (edited) @piphore Here is a set of scripts I wrote that are ECN compatible and 4/5 digit self adjusting. They will open one trade on up to 4 pairs at once. You can specify the lot size, magic number, pairs, whether to trade and trade correlation and you can override the master TP and SL at the pair level. By default the EURUSD is the master pair and has a correlation of +1, the EJ is a secondary pair with a correlation of +1, the USDCHF is a secondary pair with a correlation of -1 and the GU is a secondary pair with a correlation of +1. Also by default the GU is set not to trade. When Buy4 is executed it will open a Long EURUSD for 3.0 lots, a Long EURJPY for 3.0 lots and a Short USDCHF for 3.0 lots. After the order is confirmed it will then set the TP and SL. Both Buy4 and Sell4 use a Magic number of 3852 which you can change. Sell4 opens sells on the EU,EJ and a buy on the UC. The Close All has two options: Magic <0 = close ALL open orders. Magic >0 will close only those orders with the magic number that you supply. These are complex scripts and you need to be sure that you have changed the default settings to the values that you want to use. They are part of a larger EA and depend on the MT4 trade server on performing correctly. MT4 has known problems with executing some scripts and although I have not had any problems with them you need to make sure they do what you want them to do. http://www.4shared.com/file/NTNTJjZj/Scripts.html Please remember to test them thoroughly on a demo account first! Edited December 13, 2011 by hitescape Updated Link Roels Major, psaini1973, PIPHORE and 2 others 5 Quote Link to comment Share on other sites More sharing options...
Fortuna1713006009 Posted December 12, 2011 Report Share Posted December 12, 2011 (edited) This morning only 30 TF alone has been working. Only those who use highier TF like 30 M or H1 are going to get profits. Edited December 12, 2011 by Fortuna alansim 1 Quote Link to comment Share on other sites More sharing options...
Roels Major Posted December 12, 2011 Report Share Posted December 12, 2011 (edited) Hi hitescape I got this on my Pepperstone Demo No SL! in Both pair (EU & UC) But the script close all works fine! http://i600.photobucket.com/albums/tt90/RoelsMajor/NewPicture1-26.jpg http://i600.photobucket.com/albums/tt90/RoelsMajor/NewPicture2-9.jpg My setting: extern string a000 = "-------------------------------------------"; extern string a001 = "Defaults Information"; extern string a002 = "Individual lots Overrides Master_Lots"; extern string a003 = "To ignore TP & SL set to 0"; extern string a004 = "-------------------------------------------"; extern double Master_Lots = 1.0; extern double TakeProfit = 0; extern double StopLoss = 50; extern int Slippage = 3; // Broker theft. extern int Magic = 3333; // Magic Number extern string Comments = "PA"; // Order Comments extern string Suffix = ""; // For brokers using more than 6 letters extern string a010 = "-------------------------------------------"; extern string a011 = "Trade Pairs"; extern string a012 = "Px_Lots overrides Master_Lots"; extern string a013 = "Correlation: 1= positive corr -1 = - corr"; extern string a014 = "-------------------------------------------"; extern string P1_Symbol = "EURUSD"; extern double P1_Lots = 0.0; extern int P1_Correlation = 1; extern bool P1_Trade = true; extern string a015 = ".........."; extern string P2_Symbol = "EURJPY"; extern double P2_Lots = 0.0; extern int P2_Correlation = 1; extern bool P2_Trade = false; extern string a016 = ".........."; extern string P3_Symbol = "USDCHF"; extern double P3_Lots = 0.0; extern int P3_Correlation = -1; extern bool P3_Trade = true; extern string a017 = ".........."; extern string P4_Symbol = "GBPUSD"; extern double P4_Lots = 0.0; extern int P4_Correlation = 0; extern bool P4_Trade = false; Edited December 12, 2011 by Roels Major Quote "You Ain't Seen Nothing Yet!". Link to comment Share on other sites More sharing options...
PIPHORE Posted December 12, 2011 Report Share Posted December 12, 2011 I also tested on peperstone, and it works flawlessly (SL and TP placed correctly) so no problem with the script... Roels you might like to test it again as you know connection to their server seldom interrupted.... Quote Link to comment Share on other sites More sharing options...
Roels Major Posted December 12, 2011 Report Share Posted December 12, 2011 I also tested on peperstone, and it works flawlessly (SL and TP placed correctly) so no problem with the script... Roels you might like to test it again as you know connection to their server seldom interrupted.... Aaaaa....I think I got the problem...We must set both TP and SL > 0 and it works perfect now! If we just set, etc: TP = 0 and SL = 50 or TP = 50 and SL = 0, the script will give u error.... See : extern double TakeProfit = 0; extern double StopLoss = 50; Error 130! freddy 1 Quote "You Ain't Seen Nothing Yet!". Link to comment Share on other sites More sharing options...
hitescape Posted December 12, 2011 Report Share Posted December 12, 2011 I'll fix that later today and repost. Thanks! Quote Link to comment Share on other sites More sharing options...
freddy Posted December 12, 2011 Report Share Posted December 12, 2011 @freddy, the script cannot work on stp/ecn type broker if you put SL and TP > 0 in it, in other words on market execution did not work if you put SL/TP >0 BUT on broker which uses instant execution it works if you can make modification a bit it would be great, many thanks Hi Piphore, I cannot be of any help on this one! sorry. (my "coding" skills are very limited!) :( But I see that Hitescape put the solution for you! :) PIPHORE 1 Quote Link to comment Share on other sites More sharing options...
hitescape Posted December 13, 2011 Report Share Posted December 13, 2011 Ok. I have corrected the problem. Here is a link to the corrected scripts: http://www.4shared.com/file/NTNTJjZj/Scripts.html I also updated the original post. PLEASE TEST ON DEMO FIRST!!! canforex, Roels Major and Sesshoumaru 3 Quote Link to comment Share on other sites More sharing options...
psaini1973 Posted December 13, 2011 Author Report Share Posted December 13, 2011 News Over so now time to make some money. Profit of $ 766 8-) Check Out: http://img269.imageshack.us/img269/1725/eur55.gif http://img269.imageshack.us/img269/1725/eur55.gif domonkos, ⭐ jasper2603, Roels Major and 1 other 4 Quote Link to comment Share on other sites More sharing options...
psaini1973 Posted December 13, 2011 Author Report Share Posted December 13, 2011 (edited) This is the fastest trade i have ever done. Entry was on the spot, didnt wanted to be greedier so closed when i felt its enough for me. Made $ 1055 in straight 13 minutes. :-O Todays Total Profit is $ 1821 8-) Check Out: http://img808.imageshack.us/img808/1725/eur55.gif http://img808.imageshack.us/img808/1725/eur55.gif Edited December 13, 2011 by psaini1973 GTA, ⭐ jasper2603 and domonkos 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.