S Michael Tremante
S Michael Tremante
Friends

Add friends via their profile or user search and you will be able to see if they are online

S Michael Tremante
Added topic Closing a trade after a fixed length of time
I have an MQL4 EA that is a breakout system based on a time range.   I want to optimize the entry. I order to do this I need to open  a trade for a specific length of time, say 60  minutes.  I am having a hard time
S Michael Tremante
Added topic EA won't optimize in mt4 Strategy tester
I have an EA that is based on a time range breakout that I cannot get to optimize in the strategy tester .  Is there any particular quality that would prevent optimization
S Michael Tremante
Added topic Script won't execute
When I drag it to the chart it does everything it is supposed to do except execute buy on the chart.  Live trading is checked .  Script is attached.  Please advise, thanks
S Michael Tremante
Added topic Using this editor
Where can I find some documentation on how to use this editor?  Like how to include code formatted correctly?  Or can someone tell me?  I'm beating my head against the wall over here and can't figure it out!  Thanks
S Michael Tremante
Added topic Referencing OP_BUYSTOP or OP_SELLSTOP once opened
My ea enters an OP_BUYSTOP and an OP_ENDSTOP and assigns the “OrderSend(Symbol(),,,,,,)”(s)   to   int variables for short and long.   Can these orders be referenced to change the Stop Loss by the same variables once the price is hit
S Michael Tremante
Added topic Referencing OP_BUYSTOP once opened
 I have to recognize , in this case, a long trade has been opened when a pending OP_BUYSTOP has been hit. It returns it to a variable nlongs.  If nlongs is >0 and the price has moved x pips, the stop loss is moved to break even. int
S Michael Tremante
Added topic Trade line not executed
I have alerts that display details of an executed trade once the trade line has been executed.   Problem is, the alerts display but the trade is not executed.   So the criteria for the trade is met an and the trade is not executed but the
S Michael Tremante
Added topic Calculated Range variable as Int
I'm trying to convert a functioning time range breakout EA that works with fixed stop loss and take profit to one where these values are derived from the high and low of the time period.  I tried "double range = High[h] - Low[l]" and
S Michael Tremante
Registered at MQL5.community
S Michael Tremante
Added topic EA will not trade
I have an EA of a breakout strategy that no longer places trades. I stopped using it a year or so ago but changed the beginning and end times of the range which are both external variables. I have not changed the trading code since it ran
S Michael Tremante
Added topic "Entering "Comments" on a manual trade"
How do I enter a comment on a manual trade executed through the keyboard directly on the platform so it will show up on the terminal? I want to document the particular method per trade that I enter manually. Thanks
S Michael Tremante
Added topic Multiple EA Sessions on same cur pair in one instance of MT4
I am not sure if this is the right place to ask this, but I gotta start somewhere.. I am running MT4 and an EA on a VPS . Problem is that sometimes when I re-login to the VPS there are 2 sessions active and I have to choose 1. I have to reboot the
S Michael Tremante
Added topic Alerts not showing
I have Alerts in my code to show buys, sells, and stop moves that are not showing up. Not even in the Alert tab of the terminal. They were showing up, then I put a different version of the EA up the VPS that I'm using, but I have reverted back to the
S Michael Tremante
Added topic DateTime()
I am running a VPS where the time shown on the charts is different from the time input to extern variables in my EA. I uploaded the EA to the MT4 client and access it through the web. The EA uses DateTime() to convert to seconds from 1/1/70. The
S Michael Tremante
Added topic Time "Offset"
I am using a VPS to host my EA on Forex.com because when I tried to run the EA when the MT4 client was on my machine it would time out overnight and I'm trading off the London market, and the platform displayed GMT. Anyway my EA and indicator were
S Michael Tremante
Added topic Export and Import
Does MQL have the ability to export And import data? The idea would be to export the value of a variable to preserve it in case the EA was inadvertantly closed so it could be imported and restored to the's value it was before the program was closed
S Michael Tremante
Added topic Can External variables be changed by code?
Can external variables be set by code within the EA and hold that new value when closed and reopened, like export and import? I will be running an EA on a VPS which automatically restarts all EAs after an unscheduled shutdown. In this case I need to
S Michael Tremante
Added topic EA ignores MM routine
I have an EA that includes money management and account type routines. If the account has 5 digits which isa choice by extern variable, it mutplies the SL and TP by 10. Also, it calculates lot size by percentage of risk entered also by extern
S Michael Tremante
Added topic Compile error -"Access Denied"
I can compile an EA no problem, until I make even the slightest change, like changing a digit, and then I can neither save or compile it and get the error "Access Denied". It is very strange because I can make a change and compile it on the
S Michael Tremante
Added topic I tried to execute a buy limit order and got Invalid S/S or T/P and I don't understand???
I just opened a demo account . I tried to open a buy limit trade on EURUSD with the following parameters: -Volume: 1.00 -Pending Trade -Buy Limit -Stop Loss: 1.5777 -Take Profit At : 1.5882 -At Price: 1.5807 -No Expiry I place the order and get