Scalper8 / Publications
Forum
The difference between Trailing stop for pending orders & positions
Hi all Below the code I have attached a trailing stop code that only trails when its in profit only. For positions trades it trails ALL the Time which works perfectly fine, as for pending orders not all the time. Sometimes it will trail and sometimes it won't. I have tried using get last error code
Pending Stop Query
Hi All I have a problem with my pending stop trail, as soon as I drop my EA. The pending stop trail's but give's me a different price instead of a new trailed price. Here is the Image below: As for my code: void StopTrail3() { double BuyStopTrail= NormalizeDouble
How to avoid multiple Limit orders
How to avoid opening multiple limit orders instead of one at a time? extern double PriceLimit= 3 ; extern int MAPeriod= 7 ; int MagicNumber= 90 ; double BuyGridTrade= 0 ; double SellGridTrade= 0 ; //+------------------------------------------------------------------+ //| Expert tick function
Modify No Changes When modifying stop orders
Hi All When ever I modify my stop orders (Buy stop and Sell Stop) I come across this message on my experts tab: I've searched for modify no changes when modifying stop orders (Buy stop and Sell Stop) and I haven't solved what is the cause of this problem. Please assist if you know the problem on how
Invalid Price using Stoplevels & FreezeLevels
Hi All I want to use trail my buy stop and sell stop orders but I encounter invalid price error when using the code below. input double TakeProfit= 5 ; input double StopLoss= 2 ; input double PendingStopTrail= 2 ; int MagicNumber; double Filter= 0 ; int Direction= 0 ; int StopLevel=( int )
Script: Invalid Stops Take Profit & Stop Loss (Sell Positions)
Hello All My modify TP/SL code below won't modify sell positions instead I get modify errors . With Buy positions everything modifies as normal, please assist me as to why sell positions will not modify. #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\PositionInfo.mqh>
How to increment Lotsize by 0.1?
Hi All I want to increment my lot size by 0.1 but the first lot size has to be my default lot size calculation and then the 2nd lot just increment by 0.1 so on and so forth. I've tried to back test but the increment is incorrect, if there's any better way to do this your help will be appreciated
What is the Order Close Price fucntion in MQL5?
In MQL4 for closing price you would use the function OrderClosePrice(), I want to use the same function in MQL5. Is this the correct function POSITION_PRICE_CURRENT
How to Loop through orders
I want to loop through hedge orders but with this function it's not the correct way. If you know the correct way to loop or how to assemble hedge/hedging again and again please assist. #property strict int MagicNumber= 834856 ; double Filter= 0 ; int BuyTrade= 0 ; int SellTrade= 0 ;
Object Problem
Below I have my supply and demand EA, when attaching my EA everything works fine but the problem is when zooming out on a currency pair my supply and demand rectangles don't appear the same. Instead they appear as resistance and support. This is incorrect as I want my EA to view supply and demand