Very Simple Help Needed
  #1 (permalink)  
Old 09-01-2008, 08:01 PM
forexflash's Avatar
Senior
 
Join Date: Jun 2008
Posts: 205
Thanks: 20
Thanked 33 Times in 23 Posts
forexflash is on a distinguished road
Question Very Simple Help Needed

THIS SELL STOP IS EXECUTED AT CURRENT PRICE, BUT I NEED
THIS PENDING ORDER TO BE EXECUTED AT CURRENT PRICE -50 PIPS?



OrderSend(Symbol(),OP_SELLSTOP,my_lot*4,Bid,3,Bid+ StopLoss_Sell*Point,Bid-order_profit*Point,NULL,0,0,CLR_NONE);

Last edited by forexflash : 09-01-2008 at 08:11 PM.
Reply With Quote
  #2 (permalink)  
Old 09-02-2008, 02:27 AM
Forex Warrior
 
Join Date: Feb 2007
Posts: 261
Thanks: 9
Thanked 18 Times in 15 Posts
FerruFx is on a distinguished road
Default

Quote:
Originally Posted by forexflash View Post
THIS SELL STOP IS EXECUTED AT CURRENT PRICE, BUT I NEED
THIS PENDING ORDER TO BE EXECUTED AT CURRENT PRICE -50 PIPS?



OrderSend(Symbol(),OP_SELLSTOP,my_lot*4,Bid,3,Bid+ StopLoss_Sell*Point,Bid-order_profit*Point,NULL,0,0,CLR_NONE);
sl = Bid+((StopLoss_Sell-50)*Point);
tp =
Bid-((order_profit-50)*Point);
OrderSend(Symbol(),OP_SELLSTOP,my_lot*4,Bid-50*Point,3,sl,tp,NULL,0,0,CLR_NONE);

Is this what you need?

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! More info here
Coding services: Experts Advisors, indicators, alerts, etc ...

NEW: TripleXXX Expert Advisor
developed by Spiritfriends and coded by FerruFx ... more info
Reply With Quote
The following users have thanked FerruFx for useful post above:
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Entry EA Tribulus Trading Systems 0 05-25-2008 02:57 AM
Help coding a simple EA sundwnr System Coding 1 11-22-2007 10:43 PM
Simple EA needed nobleladdie System Coding 3 10-16-2007 03:00 PM
I need this simple script :-) bossxero MetaTrader and ZeroCode 2 11-22-2006 02:03 AM
A very simple cashcow TraderSeven Trading Systems 7 06-18-2005 12:17 PM


All times are GMT. The time now is 04:18 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now