Newbee question

To add comments, please log in or register
George65
12
George65  

Hi,

I'm new to MT4. Could someone help me please how I can activate the trade in automatend trading immediately when the trigger occurs, and not next bar open? For example, if I want to open a position if a bar has a higher high than the previous one, when this happens I want the position to be opened. During my test I can see, that it does not open when the trigger comes, but at the next bar open.

The other question: If a position is opened, do not open another one. Since I use an EA builder, please do not post mql command, but builder definition.

What is the sign of the current bar? Bar˙(0) or bar(1)


Kind regards

George

whroeder1
17943
whroeder1  
EA builder, EATree, fxDreema, FxPro, Online Forex Expert Advisor Generator, Quant, Visual Trader Studio, MQL5 Wizard, etc. are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.
  • Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
    If we tell you what you need, you can't code it.
    If we give you the code, you don't know how to integrate it into yours.
    We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds of lines of code. You are essentially going to be on your own.

  • EA builder makes bad code counting up while closing multiple orders.
    EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
    EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
    EA builder makes bad code, not adjusting for ECN brokers. (pre-Build 500)
    EA builder makes bad code, not checking return codes.
    EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/power failure.)
Learn to code it or or pay (Freelance) someone to code it.
George65
12
George65  
George65:

Hi,

I'm new to MT4. Could someone help me please how I can activate the trade in automatend trading immediately when the trigger occurs, and not next bar open? For example, if I want to open a position if a bar has a higher high than the previous one, when this happens I want the position to be opened. During my test I can see, that it does not open when the trigger comes, but at the next bar open.

The other question: If a position is opened, do not open another one. Since I use an EA builder, please do not post mql command, but builder definition.

What is the sign of the current bar? Bar˙(0) or bar(1)


Kind regards

George

whroeder1:
EA builder, EATree, fxDreema, FxPro, Online Forex Expert Advisor Generator, Quant, Visual Trader Studio, MQL5 Wizard, etc. are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.
  • Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
    If we tell you what you need, you can't code it.
    If we give you the code, you don't know how to integrate it into yours.
    We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds of lines of code. You are essentially going to be on your own.

  • EA builder makes bad code counting up while closing multiple orders.
    EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
    EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
    EA builder makes bad code, not adjusting for ECN brokers. (pre-Build 500)
    EA builder makes bad code, not checking return codes.
    EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/power failure.)
Learn to code it or or pay (Freelance) someone to code it.
Thanks for your opinion!
rucope
158
rucope  
George65:

Hi,

I'm new to MT4. Could someone help me please how I can activate the trade in automatend trading immediately when the trigger occurs, and not next bar open? For example, if I want to open a position if a bar has a higher high than the previous one, when this happens I want the position to be opened. During my test I can see, that it does not open when the trigger comes, but at the next bar open.

The other question: If a position is opened, do not open another one. Since I use an EA builder, please do not post mql command, but builder definition.

What is the sign of the current bar? Bar˙(0) or bar(1)


Kind regards

George

Write your entry function in side the OnTick().
George65
12
George65  
rucope:
Write your entry function in side the OnTick().
Thank you rucope!!
To add comments, please log in or register