HI there! Im trying to get the difference from GMT to Server, but is the server shows midnight as 0 and GMT shows as 21, so of curse 21 - 0 = 21. 21 would be the wrong different between GMT and Server in my case. How do i calculate it the right way. Thanks a lot, Piero int start() { datetime
Hi everyone! So in the moment i'm trying to build a indicator in the subwindow using ObjectSetCreate() ObjectSetText() ObjectSet() for text and SetIndexBuffer() SetIndexStyle() SetIndexLabel() for the indicator. Problem 1) The line up between a text line and the indicator line change by resizing
Hi Everyone! if Statement stop's running after first day, only works one's on the drup on chart. pls,need the hint here double BFM; double BarsFromMidnight() { if ( Hour () == 0 ) {BFM = 0 ;} else if ( Hour () == 1 ) {BFM = 1 ;} else if ( Hour ()
Hi Everyone! Please point me in the right direction! Trying to get either Lowest_Open or Lowest_Close in Comment, show only the lower of a candle body. The same to the up side Highest_Open or Highest_Close. //+------------------------------------------------------------------+ //| Piero |
{ int OSS,OTS; bool OCS; OSS= OrderSelect ( NULL ,SELECT_BY_POS,MODE_TRADES); OTS=OrderType(); if (CC1> iMA ( NULL , 0 , 48 , 0 , MODE_LWMA , PRICE_HIGH , 1 )) if (OTS==OP_SELL) { OCS=OrderClose(OrderTicket(),OrderLots(),Ask, 3 , clrRed )&& PlaySound (
{BR1=CandleBody1* 100 /CandleRange1;BodyRange1= MathAbs (BR1);} So im trying to get % of the candle body to candle rande, im getting this error zero divide and the ea stops trading. How can i fix that? Thanks Piero
{ double A; bool res,resC; if ( OrdersTotal ()> 0 ) res= OrderSelect (SELECT_BY_POS,MODE_TRADES); A=OrderOpenTime(); int B=iHighest( NULL , 0 ,MODE_HIGH, 3 ,A); if (B) if (OP_SELL) resC=OrderClose( NULL , 0.01 ,Ask, 3 , clrRed ); } Hi
How do i get the Point amount caculation between OrderOpenPrice and StoppLoss in an open order? thanks
bool clbuy,clsell; //+------------------------------------------------------------------+ //| Close Signal | //+------------------------------------------------------------------+ void start() //CloseSignal() { if ( OrdersTotal ()> 0 )
hi everyone!!! i trying to code a closing condition. When there is an open position and candle is closing in profit bigger then 10*points close trade. i try to attach the code with src but i only get attachment option. it says it right there to use src , cant see any bottom for it. as u see i have