ray price / Publications
Forum
Help with inserting indicator into EA
Hello I have an indicator and am trying to get it to work in my Ea. 1st I tried to use I custom no buffer values then I inserted it into my Ea and nothing. Need some help thanks. Here is part of my code. //+------------------------------------------------------------------+ //|
can not compile
Hi guys, a bit of WHReoder program was suggested to me,I cant get it to compile. I am trying to get the last profit taken (order price level ) to use for continuation of trend for intri level. int GetHistoryOrderByCloseTime( int & tickets[], int dsc= 1 ){ #define ASCENDING - 1 /*
orders always zero
Hi guys, Im running my EA in tester and OrdersHistoryTotal(), OrderClosePrice() and OrderTakeProfit() are all showing zeros even after orders are Open and Closed.Here is the code. Thanks for your help. double PriceTP; int Total_History = OrdersHistoryTotal (); for ( int pos = 0 ; pos >=
need to store last profit taken
Hi guys, i need some help what im trying to do is store the (last profit taken price level) and use as a condition for entry. A continuation of trend in the same direction. Thanks for your help. //+------------------------------------------------------------------+ //| RAYsMaRVI.mq4 | //| Copyright
checking for realtime profits
Hi, im trying to check for realtime profit levels during trade. Here is my code it gives profit after trade close. for(int i=0;i<OrdersTotal();i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break; iTotalTrades = OrdersTotal(); if (OrderType()==OP_BUY) {Profit=Bid-OrderOpenPrice();} if
wish to trade only spicific time of day
Hi I'm trying learn how to code this. There is time() and Istradealoud(). Here are my thoughs. Please help. Example: if( time()==12:00 ) { IsTradeAloud="true" } if( IsTradeAloud=="true" ) { Trade Logic
can't get my EA to run
Hi i'm a newbe and i made an EA that compiled and loads successfully on to a chart. When using test strat the chart doesnt move. I put print statements at the Start () and other funtions() to see where it might be hanging up. But no displays at expert bar. Is there any suggestions. Thanks. Eample