- Search Forex Factory
- 28 Results (1 Thread , 27 Replies )
- The chessBoard system
Dear friends, I have been trading forex and other instruments for more than five years, and until ...
- Forexjlcg replied Apr 19, 2011
Mr. Hopwood, I think the Scoobs Margin Check must be expressed as if (UseScoobsMarginCheck && OpenTrades == 0) because if there are open trades and in drawndown, it will be dificult to be rescued if we don't permit opening new positions. Thanks José ...
- Forexjlcg replied Mar 24, 2011
Hi Steve, a possible solution will be : First, declare BuyOpen and SellOpen as general variables: bool BuyOpen; bool SellOpen; Second, modify CountOpenTrades() as follows: void CountOpenTrades() { OpenTrades = 0; BasketUpl = 0; BuyOpen = False; ...
- Forexjlcg replied Mar 18, 2011
Dear Steve, ForexPete: I think one of the possible solutions for the separation issue will be as follows: First, declare two general variables: double MinBuyPrice, MinSellPrice; Second, create the following module: void MinPriceEntry() { ...
- Forexjlcg replied Mar 15, 2011
Dear Steve: I think when in recovery the bot must always use the following function to calculate the reentry, not the sixths lines, because i am having the problem mentioned above. void ReplaceReEntryLine() { //Find the most recent trade in the ...
- Forexjlcg replied Mar 15, 2011
Dear Steve: I have noted that the third open trades in recovery are very near the seconds (not more than 100 hundred points, often no more than fifty) that it because the reentryline line is calculated using the HalfBottomLine and the HalfTopLine. I ...
- Forexjlcg replied Mar 15, 2011
Steve, I think this sentence will always be executed because the TicketNo is used for pending orders, never for open or closed trades. Thanks José Luis
- Forexjlcg replied Mar 15, 2011
Dear Steve: In the sentence if (!OrderSelect(TicketNo, SELECT_BY_TICKET) || OrderCloseTime() > 0) return; I thinks the first part of the sentence (in red) is always true because there is no number of ticket to make the selection by ticket: the ...
- Forexjlcg replied Mar 13, 2011
Please Steve correct this module: bool SendSingleTrade(int type, string comment, double lotsize, double price, double stop, double take, int magic) { int slippage = 10; if (Digits == 3 || Digits == 5) slippage = 100; color col = Red; if (type == ...
- Forexjlcg replied Mar 13, 2011
Dear Steve: I think the correct code is: void CountOpenTrades() { OpenTrades = 0; BasketUpl = 0; bool BuyOpen, SellOpen; MostRecentTradePrice = 0; if (OrdersTotal() == 0) return; for (int cc = 0; cc <= OrdersTotal(); cc++) { if (!OrderSelect(cc, ...
- Forexjlcg replied Mar 12, 2011
Dear Steve: I think the best solution is declaring a new general variable int OldCountOpenTrades; and to modify void CountOpenTrades() by adding at the end the code //Check if new trade takes us into Recovery if (OpenTrades == 0) OldCountOpenTrades ...
- Forexjlcg replied Mar 12, 2011
OpenTrades — Dear Steve: Do you think is it possible if replacing the sentence OpenTrades++; for the sentence CountOpenTrades(); will resolve the problem? Thanks José Luis
- Forexjlcg replied Mar 12, 2011
breakeven line — Dear Steve: I think that the sendsingletrade function sends a pending order that can be or not fullfilled, but in the code the expression //Check if new trade takes us into Recovery OpenTrades++; if (OpenTrades >= ...
- Forexjlcg replied Mar 12, 2011
DoIdiotsCheck() — Dear Steve: I think the code must be the following: void DoIdiotChecks() { if (Start_Recovery_at_trades < 2) Start_Recovery_at_trades = 2; if (Lot < MarketInfo(Symbol(), MODE_MINLOT)) Lot = MarketInfo(Symbol(), MODE_MINLOT); ...
- Forexjlcg replied Mar 11, 2011
Dear Steve: I had to make the following changes in the program in order to calculate the correct re entry line in my 5 digits broker: void CalculateReEntryLinePips() { /* extern int ReEntryLinePips=0; extern int LookBackDays=20; extern int ...
- Forexjlcg replied Mar 11, 2011
Dear Steve: I think that in the code in the first post you don't have eliminated this line. Please check. Thanks José Luis
- Forexjlcg replied Mar 11, 2011
Dear Steve: I am having the same problem and I think the error is in CalculateTrades(), in the following line (marked in red): //Buy stop = 0; SendLots = Lot; ....... Please, verify. Thanks José Luis
- Forexjlcg replied Mar 2, 2011
The Old Beast — Excuse me, Steve, but i have put an incomplete code for the subroutines. The code I think must be: void CloseAtGreen() { bool result = true; if (OrderType() == OP_BUY) { if (Ask >= BottomGreenLine && OrderStopLoss() == 0) { ...
- Forexjlcg replied Mar 2, 2011
The Old Beast — Dear Steve, I think in The Old Beast there is a missing piece of code. I put it in red to your consideration. void TradeManagementModule() { // Call the working subroutines one by one. if (BreakEvenAtGold && OrderProfit() > 0) ...
- Forexjlcg replied Feb 21, 2011
Only sell orders problem — I think there is a line missing: void GetSixths() { double ctgl = TopGoldLine; double cbgl = BottomGoldLine; /* Old code that read the lines on the screen TopGoldLine = NormalizeDouble(ObjectGet("fivesixth", ...