|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Ok, I use Comment() command..
|
|
|||
|
Dumbo here
Hi all
This is a great thread for someone like me who knows nothing about programming. It has much useful information and many little peices of code I could copy and play with. I hope someone could help me out with this peice.I want to make an EA based on price. What do I enter in the code to tell the following: 1) I want the EA to look at price at 20:00 on the hour chart and see what it's relation is to the 100sma. 2)If price is above the 100sma, I want it to open 2 buy orders at certain level. 3) These levels are based on the closing price of the 16:00 candle, so if the 16:00 candle is 1.2000, I want it to open a buy at 1.1120 and 1.2080 I have the stops and trailing stops and profit levels all worked out and stuff, all codes taken from this thred. So I thank those who posted them. I I will be forever debted if someone could help me out here. Kind regards Susan ![]()
__________________
The more I look; the more I operate The more I pull out; the more I put back The more I more; The better I trade |
|
|||
|
Help
Hi, everyone
I tried to create an EA, and I got the following error message: '\end_of_program' - ending bracket '}' expected C:\...\My_First_EA.mq4(96,1) I double-clicked it, get to the line, then check it with opening-ending brackets prior to it, and still don't know where I made mistake. This is the second EA I tried, with the same error message, based on the same indicator. Thank you. |
|
|||
|
It is something with iOpen, iClose and so on.
For example: 1. Code:
iOpen(NULL,5,1) 2. Code:
iClose("GBPUSD",PERIOD_H1,1)
3. Code:
iClose("GBPUSD",Pt,pr)
Code:
extern int pr=1; extern int Pt=5; |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |