- Search Metals Mine
- 41 Results (1 Threads, 40 Replies)
- wolfe replied Sep 23, 2010
You have a long exciting journey ahead of you! Start here: url
A Profitable EA
- wolfe replied Aug 5, 2010
This is how I accomplished this. It took me quite a while to figure it out. I created a c++ shared memory space, then one mt4 platform writes to it via dll (in my case I was passing doubles to an array in the shared space), and the other platform ...
Most efficient way to pass orders to other mt4
- wolfe replied Jul 23, 2010
If you use a dll, you can write to a "shared memory space" from mq4. The shared memory space has to be created with another language, I have done this with c++. Its not easy (at least it wasn't for me) but it can be done. Any number of mt4 platforms ...
How to write to other directories in mt4
- wolfe replied Jun 16, 2010
Instead: OrderSend("EURUSD",OP_BUY,Lots,Ask,0,SL,TP); OrderSend("GBPUSD",OP_BUY,Lots,Ask,0,SL,TP); OrderSend("USDJPY",OP_BUY,Lots,Ask,0,SL,TP);
trying to make a multipair buy and sell script
- wolfe replied May 27, 2010
This function will kill 'em all as well: int CA()//Close All { while(OrdersTotal()>0) { OrderSelect(0,SELECT_BY_POS); if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),999,Red); if(OrderType()==OP_SELL) ...
close all orders
- wolfe replied Apr 22, 2010
Hi slim, Are you opening the orders manually, or do you need an ea to open the orders? What you are looking for can be done, with mt4 dlls, attached EA's on each account, and a stand alone shared memory space application. It's a bit of a pain, but ...
Auto open and close trades across multiple accounts HELP PLEASE :)
- wolfe replied Apr 8, 2010
if(OrdersTotal()==0) { //Order Entry Code Here }
How do I allow only 1 open trade at all times?
- wolfe replied Mar 6, 2010
When using VS C++ 2008, I start with an "empty" project. Next I add a .cpp and a .def to the project. (in source files) Under your project name-properties-configuration properties-general you need to set the configuration type to dll. Then under ...
DLL Import Error > Desperate!
- wolfe replied Mar 5, 2010
You have to use a .def file in my experience. I am no expert at this either, but I have managed to make this work. I first did this a few years ago using microsoft visual c++ 6.0, but I now use the free express version of visual c++ 2008. The .def ...
DLL Import Error > Desperate!
- wolfe replied Feb 23, 2010
Use a c++ .exe that sets up a "shared" memory space, then access the shared memory space via your dll call from metatrader. For multiple pairs, you will probably have to set up multiple shared memory space arrays, each accessed via seperate dlls. I ...
MT4 DLL Memory Pollution
- wolfe replied Jan 20, 2010
Any idea can be coded out in an EA. Spell out EXACTLY what you want. Maybe someone will take interest and code it.
experienced coder wanted - price action strategy ea
- wolfe replied Jan 16, 2010
Just learn to code mq4 if you're worried about your ideas being stolen and sold. It's really not rocket science. Anyone with enough drive can learn how to code mq4. If you really have a winning system, that should be more than enough drive to make ...
shady programmers
- wolfe replied Dec 4, 2009
I don't have a question tomhliles, I just want to commend you for making this tutorial. I am also a self-taught coder. I only wish when I first started that I ran across a thread such as the one you are creating. You are providing a very useful ...
Coding Tutorial
- wolfe replied Dec 3, 2009
To call OrderMagicNumber() The order must be previously selected by the OrderSelect() function. I use my own function I created for this purpose: int OTBM(int intMagic)//OrdersTotalByMagic { int intCount=0; int intPOS=0; bool boolTerm=false; ...
A little input would be appreciated :-)
- wolfe replied Dec 3, 2009
Yes, this is possible. It requires quite a bit of coding. I'm sure there is more than one way to accomplish this. I have done this. What type of trading system are you looking to implement?
Trading Multi MT4 Brokers
- wolfe replied Nov 10, 2009
Very funny! I've received crazy requests as well, although most of mine involve massive amounts of indicators, which I can't stand. At least now I know how to code a 100% profit EA!
Programming Request: Hall of Fame
- wolfe replied Oct 4, 2009
I took a look at your code. I noticed you have no order entry in the EA. You first need to have order(s) opened with the magic number you want to track . I'll try to provide an example for you, when I get a little more time.
Close all trades, Based on Magic Number Modification
- wolfe replied Oct 4, 2009
Here are a few functions I created to deal with orders by magic number, maybe they can help you in what you are trying to accomplish. To get the order profit by magic number: double OPBM(int intMagic)//OrderProfitByMagic { double dblProfit=0; int ...
Close all trades, Based on Magic Number Modification
- wolfe replied Aug 13, 2009
You could put your EA within a continuous while loop. You have to use some kind of Sleep() function for this to not "crash" your system, but it does work. This example would cycle your EA every 50 milliseconds: int start() { int x = 0; while (x==0) ...
Writing an EA without the start function?