Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


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
 
Old 11-18-2006, 07:14 PM
Kurka Fund's Avatar
Senior Member
 
Join Date: Sep 2006
Location: San Diego
Posts: 139
Kurka Fund is on a distinguished road
Price System

How do you go about using price to determine when to enter or exit positions? I can use indicators all day long but my system requires price based entry in certian conditions. . . .


Here is waht I need to do...
extern bool Stepper =false;
extern bool OpenBuy =false;
extern int PipDifference =3;
extern int PipStep =2;



if (conditions_are_met){
double high1 = iHigh(NULL,0,1);
double high2 = iHigh(NULL,0,2);
double high3 = iHigh(NULL,0,3);
double high4 = iHigh(NULL,0,4);
double CurrentPrice = iHigh(NULL,0,0) //not sure if this is the right code

if (CurrentPrice < (high1 - PipDifference)) {Stepper=true; OpenBuy=true;}
if (Stepper){
if (CurrentPrice < high1 - PipDifference - PipStep) {OpenBuy = true;}

//Basically I want to buy when current price is less than PipDifference, and buy again at every Step. in this case buy at previous high - 3, and again at -5 and -7 and -9 ext...

//Then I want to trail that position at a NEW High. So as soon as the current price hits a new high (higher than the last 4 periods) then trail the position with a tight trailing stop (2-3 pips). This has to be done for all of the positions opened.

//Or even better somehow make it wait (x number of bars) and go start the trailing stop at the new high a few bars later. But the sooner you capture the profit the larger your next trade can be....

It basically trades with the trend and takes advantage of the high volitility.

Hopefully the attached chart will give a good visual.
Attached Images
File Type: jpg TrendScalp.JPG (199.0 KB, 254 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Bookmarks
Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
(FPI) predictive price Nicholishen Indicators - Metatrader 4 79 Today 04:28 PM
MTF Price keris2112 Indicators - Metatrader 4 17 02-03-2008 04:47 PM
Price EACAN Questions 4 06-23-2006 09:27 AM


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



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