Forex
Google

Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2005, 11:50 PM
justceg justceg is offline
Junior Member
 
Join Date: Nov 2005
Posts: 2
justceg is on a distinguished road
Price Criteria

Looks like a great fourm, I just was advised to come here because of a MT4 question I had, so here goes. I have an expert which enters into trades very frequently, and I would like to run multiple instances of it on the same currency pair. However I don't want to have all the experts enter at the same price. I had set up a different qualifying criteria but I do think it would be more efficient to space the trades out using pips...

So what would be the most efficient way to tell an expert to only enter a trade if the price is say some multiple of 100. For expample we would want the expert to only enter a trade if the price ends in x.xx20, where 'x' can be anything.

Someone smarter than me suggested, for a price ending in x.xx00, in MT3 we could do something like this.


Var: GetMultipleStart(0),StartMultiple(0),MultipleValue (0),MultipleValue2(0);
Var: MultipleValue3(0),MultipleValue4(0);

If TotalTrades==0 then StartMultiple=0; // don't forget to reset the variable

If StartMultiple==0 then
{

StartMultiple=1;
If GetMultipleStart=0 then GetMultipleStart=Ask;

If GetMultipleStart>0 then
{
MultipleValue= GetMultipleStart*100; // Chop of the intergers that aren't wanted
MultipleValue2= (round(MultipleValue)); // Round off to get rid of integers
};
If MultipleValue2 > MultipleValue then MultipleValue3= MultipleValue2 - 1 Else MultipleValue3=MultipleValue2; // If the integer gets rounded up it will throw things off this
// will negate that effect
MultipleValue4= MultipleValue3/100; // This gives you the value in it's regular form x.x100


Is this possible/feasable in MT4 or is it not worth the time.

Thanks in advance, and I am excited about this new forum.

Justin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-01-2005, 05:15 AM
justceg justceg is offline
Junior Member
 
Join Date: Nov 2005
Posts: 2
justceg is on a distinguished road
So the new thought is instead of coming up with something complicated, just stringing it out, one price after another, but if the price is at that point for just a few moments will the expert be able to activate in enough time?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
MTF Price keris2112 Indicators - Metatrader 4 17 02-03-2008 04:47 PM
Price System Kurka Fund Expert Advisors - Metatrader 4 0 11-18-2006 07:14 PM
Price EACAN Questions 4 06-23-2006 09:27 AM


All times are GMT. The time now is 10:13 PM.