Forex
Google
New signals service!

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions


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

Reply
 
LinkBack (2) Thread Tools Display Modes
  #221 (permalink)  
Old 08-04-2006, 06:08 PM
Member
 
Join Date: Apr 2006
Posts: 52
hidethereal is on a distinguished road
I was curious if anyone knew what code I would need to insert into the RSX indicator to make the RSX line change colors if it's above 70 or below 30.


Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #222 (permalink)  
Old 08-04-2006, 06:23 PM
MarvinSk's Avatar
Member
 
Join Date: May 2006
Location: New York
Posts: 62
MarvinSk is on a distinguished road
Profit Keeping Loss Management

Hello All,

I have been trying to add to CODEGURU's Money Management system, the ability to Manage Profits and Loss...

The Idea!!

If trading with MM Lots when Account Balance reaches a specified percentage I would like MM Lots to be reduced significantly so that Profits Gain will not be Lost, because you are not trading with the regular MM Lots

Look at what i am done but not sure if this will work

double lotMM = MathCeil(AccountFreeMargin() * Risk / 1000) / 100;

if(AccountIsMicro==false) //normal account
{
if(lotMM < 0.1) lotMM = Lots;
if(AccountBalance()>=ProfitFactor) lotMM = 0.2;
if((lotMM > 0.5) && (lotMM < 1)) lotMM = 0.5;
if(lotMM > 1.0) lotMM = MathCeil(lotMM);
if(lotMM > 100) lotMM = 100;

}


Anyone Please help with this... CODEGURU your input will be greatly welcome
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #223 (permalink)  
Old 08-04-2006, 10:47 PM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Unhappy a few more questions coming apparently

Is this part of my setup guide doing what i want it to do?

PHP Code:
double CurrentClose iClose,(NULL01); //supposed to look at the close of the most recent period
double TrendClose iClose,(NULL03);//supposed to look at close of three periods ago 
it's simple i know, but with 53 errors and 34 warnings, one has to wonder, (especially since i just pulled a formula out of metaeditor's reference manual).

I've been pushed in coding, but i'm not that good at editing it when i know some of the problems are going to be because it's not a complete ea, if anyone spots any errors in it, please please, please let me know!

Thanks for all the help!
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder

Last edited by Eaglehawk; 10-21-2006 at 06:37 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #224 (permalink)  
Old 08-07-2006, 05:07 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 690
increase is on a distinguished road
Can you use reverse colors?

Can I use a reverse color in ObjectSetText say red on yellow background?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #225 (permalink)  
Old 08-07-2006, 07:57 PM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Thumbs up We Have A Go!

thanks to all you have have givin assistance i now have completed a successfull cusion for interbankfx's non-working days, here are the codes i have used to complete the transfer.

i've posted all three codes used, and i would post the results on this one, but there wasn't enough room, so they'll be on the next one
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder

Last edited by Eaglehawk; 10-21-2006 at 06:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #226 (permalink)  
Old 08-07-2006, 07:59 PM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Post The Results

here are the results for the before an after
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder

Last edited by Eaglehawk; 10-21-2006 at 06:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #227 (permalink)  
Old 08-07-2006, 10:24 PM
Junior Member
 
Join Date: Jun 2006
Posts: 8
TWTrader is on a distinguished road
weekly stop/target

I am trying to add a weekly stop/target to my EA. Here is what I am trying to do...starting on Sunday begin calculating profits/loss's for the week, once a certain level is reached trading will be stopped until Fridays Close/sundays open, then the P&L will be reset.

Also if the EA is started in the middle of the week it will need to know the P&L since Sunday.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #228 (permalink)  
Old 08-07-2006, 10:30 PM
MarvinSk's Avatar
Member
 
Join Date: May 2006
Location: New York
Posts: 62
MarvinSk is on a distinguished road
Quote:
Originally Posted by TWTrader
I am trying to add a weekly stop/target to my EA. Here is what I am trying to do...starting on Sunday begin calculating profits/loss's for the week, once a certain level is reached trading will be stopped until Fridays Close/sundays open, then the P&L will be reset.

Also if the EA is started in the middle of the week it will need to know the P&L since Sunday.

Sounds like Profit Locking Feature I ask about before.... There is such a great need for this....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #229 (permalink)  
Old 08-08-2006, 08:30 PM
Junior Member
 
Join Date: Jun 2006
Posts: 8
TWTrader is on a distinguished road
I am trying to calculate a pivot point starting at 22:00, at this time it needs to look for the high and low since midnight (00:00) and the close at 22:00. I also would like know this value at any given time. For some reason what I am using below is not working, it stays 0 until 22:00, then if the EA is reloaded it resets to 0 again. Can someone please help?

//--------Calculate P1 Pivot--------//

double LookBackHour1, LookBack1 ;
static double P1, dHigh1, dLow1, dClose1 ;

if(TimeHour(CurTime())==22 && TimeMinute(CurTime())==0)

{
LookBackHour1 = 22;
LookBack1 = MathCeil((22*60)/Period());

dHigh1 = iHigh(NULL, 0, Highest(NULL,0,MODE_HIGH,LookBack1));
dLow1 = iLow(NULL, 0, Lowest(NULL,0, MODE_LOW,LookBack1));
dClose1 = Close[0] ;

P1 = (dHigh1 + dLow1 + dClose1)/3;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #230 (permalink)  
Old 08-08-2006, 11:20 PM
Member
 
Join Date: May 2006
Posts: 30
skorcht is an unknown quantity at this point
universal MA cross EA

UniversalMACrossEA
http://www.forex-tsd.com/attachments...4?d=1151060077

This EA is missing one Crucial Major feature...opening More than 1 buy or sell at a time. This is important for money management.
Setting the TP,SL on two different Buys or sells. Then close one or both when the MA crosses in the other direction and open the BUYs/Sells in the opposite direction.

This is a GURU EA along with a couple other people who modified it.
I am only half way decent with reading MQ code and modifying it, but if somebody could point me in the right direction..I'll try to modify it myself!


THANKS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
histogram, forex, ZUP_v1.mq4

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
Posted By For Type Date
OzFx System:) - Page 639 This thread Refback 06-21-2008 10:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 12:46 PM


All times are GMT. The time now is 04:15 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.