| New signals service! | |
|
|||||||
| 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 (1) | Thread Tools | Display Modes |
|
|||
|
Ryan Jones
Hello there,
I paid almost 2500 dollars for his EA, which sucks. I would have been better to give that money to a worthy charity.When I wrote to him, he said it works for him. full of B*** S***, if he sold lets say 100 EAs, his move is most certainly in bullish mode. blueocean |
|
||||
|
Not quite the same
PHP Code:
Last edited by mladen; 06-21-2007 at 10:03 PM. |
|
||||
|
What is code to put stop to break even?
Does anyone know how I can add some code to my ea to have stop set to break even or even have context when adding to however many I want?
extern double BreakEven = 0; Theres that bit but what code do I actually put?
__________________
http://en.wikipedia.org/wiki/Probability In a deterministic universe, based on Newtonian concepts, there is no probability if all conditions are known. |
|
||||
|
IS THERE SOMEWAY TO PUT A BREAK EVEN STOP LOSS!!!!!
![]()
__________________
http://en.wikipedia.org/wiki/Probability In a deterministic universe, based on Newtonian concepts, there is no probability if all conditions are known. |
|
||||
|
Quote:
Code:
void breakEvenManager()
{
for(int cnt=0;cnt<OrdersTotal();cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if (BreakEven>0 )
{
if (OrderType()==OP_BUY)
{
if (Bid-OrderOpenPrice()>=Point*BreakEven)
{
if (OrderStopLoss()<OrderOpenPrice() || OrderStopLoss()==0)
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice() ,OrderTakeProfit(),0,Green);
}
}
else if (OrderType()==OP_SELL)
{
if (OrderOpenPrice()-Ask>=Point*BreakEven)
{
if (OrderStopLoss()>OrderOpenPrice() || OrderStopLoss()==0)
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice() ,OrderTakeProfit(),0,Red);
}
}
}
}
}
__________________
"Don't work harder, work smarter." -- my Java professor Coder for Hire: http://www.firecell-fx.com Last edited by ryanklefas; 07-05-2007 at 01:52 PM. |
|
||||
|
Thanks, but that doesnt fit with the extern breakeven thing.
I put it in says, Function "breakEvenManager" is not referenced and will be removed.
__________________
http://en.wikipedia.org/wiki/Probability In a deterministic universe, based on Newtonian concepts, there is no probability if all conditions are known. |
|
||||
|
You have to call the module at some point in your code.
__________________
"Don't work harder, work smarter." -- my Java professor Coder for Hire: http://www.firecell-fx.com |
|
|||
|
i need help in simpel code
hi all
i neeed some one can help in simpel code that reverse the order when it lost and open same order if it won, and the first order will opened manually , set any takeprofit and stopand thanx for help |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |