View Single Post
  #248 (permalink)  
Old 07-09-2009, 03:47 PM
SPACECHIMP's Avatar
SPACECHIMP SPACECHIMP is offline
Member
 
Join Date: Feb 2006
Location: West Michigan, USA.
Posts: 86
SPACECHIMP is on a distinguished road
need a piece of code for orders

Position opening question for programming..

ALL I want is code for opening a single position ONE Time when conditions are true for entering. And NOT open any more positions in that direction.

an Example
1. MA's cross
2. a BUY order is sent
3. CONFIRM 1 Buy is opened (with magic number), if not try again.
4. Don't open ANYMORE buys, even if above buy hits TP.
5. When MA's cross in other direction Close open Buys(with magic number), Confirm closed, if not try again.
5. place sell order.

I've tried my best to code something to do the above but I get NO positions when there should be one, then i get 1 sometimes, then I get 4 Sometimes.
So my code is Krap obviously. It has to 100% consistent

Seems like writing the code and THEN getting it to work with broker live are two different problems.

Anyways, I have like $5 U.S. dollars in my paypal account..which isn't alot i know but if things go well working with you then
I will recommend to you to anybody in the currensee community who is looking for an EA to be written. So hopefully that's helpful

Thanks MUCH!!
__________________
www.LiveTeamTrading.com
The FIRST LIVE Team trading Network Community for FOREX TRADERS! Ask me about Getting an Invite!
Reply With Quote