Thread: How to code?
View Single Post
  #1878 (permalink)  
Old 07-03-2009, 01:52 AM
luxinterior luxinterior is offline
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Quote:
Originally Posted by SPACECHIMP View Post
Want to open 1 POSITION in a direction but No more even if position hits TP.

Checking for open position won't work obviously.

Example-
I don't want another 'BUY' to execute if i had a buy open and it hit the TP. I want it to wait until the MA's cross down and open a SELL with a TP and repeat the whole thing over again.

There's probably an easy way to do this buy my brain is fried or something

THANK YOU
You need to check your order history to see if an order just closed on the current bar for profit.

Hope that helps.

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
Reply With Quote