NetProfit - EasyLanguage Programming | futures io social day trading
futures io futures trading


NetProfit
Updated: Views / Replies:416 / 6
Created: by AhmedF Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

NetProfit

  #1 (permalink)
Trading Apprentice
north bergen
 
Futures Experience: None
Platform: multicharts
Favorite Futures: Currency
 
Posts: 13 since Feb 2017
Thanks: 3 given, 1 received

NetProfit

Does anyone know how to write a code in esaylanguage that stops a robot from trading after it has profited x amount of pips?

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,731 since Apr 2013
Thanks: 265 given, 998 received
Forum Reputation: Legendary


AhmedF,

there are several way to approach this, one would be to store the net profit in a variable at the beginning of a new period in which you want to stop the trading when a certain net profit is reached (for example daily or weekly, but others would be possible, too).

Now you compute the difference of the current net profit to the value that you stored within the variable. If the difference is greater than your profit limit, block your code from taking further entries and maybe even close all open positions.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Trading Apprentice
north bergen
 
Futures Experience: None
Platform: multicharts
Favorite Futures: Currency
 
Posts: 13 since Feb 2017
Thanks: 3 given, 1 received

net profit

vNetProfit(0),
vDailyNetProfit(0),

If Date = CurrentDate and Date <> Date[1] then
begin
vNetProfit = NetProfit;
end
else
If Date = CurrentDate then
begin
{ Calculate Daily NetProfits }
vDailyNetProfit = NetProfit - vNetProfit;
end;

i found this online how do implement this with order execution so once the robot profits x amount ( E.g. 200$) stop trading. At the same time i want it to run between certain hours 8am-10:30am the way i want it to function is the following . if 200$ are made starting at 8am and 1030 has not come yet then stop trading else continue trading until 1030 then stop disregarding if it made 200 or not.

ABCTG View Post
AhmedF,

there are several way to approach this, one would be to store the net profit in a variable at the beginning of a new period in which you want to stop the trading when a certain net profit is reached (for example daily or weekly, but others would be possible, too).

Now you compute the difference of the current net profit to the value that you stored within the variable. If the difference is greater than your profit limit, block your code from taking further entries and maybe even close all open positions.

Regards,

ABCTG


Reply With Quote
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,731 since Apr 2013
Thanks: 265 given, 998 received
Forum Reputation: Legendary

AhmedF,

I am afraid without knowing how your "order execution" part of the code looks like, it's hard to give you a clear direction on how to add the code snippet you posted.

The variable vDailyNetProfit holds the daily profit since midnight, if you only want it to hold the profit since 8am, you would have to modify the code to do the reset based on time and not on the date change.

Regards,

ABCTG

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
north bergen
 
Futures Experience: None
Platform: multicharts
Favorite Futures: Currency
 
Posts: 13 since Feb 2017
Thanks: 3 given, 1 received

execution code

if (data2var2 > 0 )
then begin
vvsup = true;
VVSDN = False;
end;
if (data2var2 < 0 )
then begin
vvsup = False;
VVSDN = True;
end;

if VVSUP then begin
if ( var3 crosses above -0.88) and (trnd > 0) then buy next bar at market;

if VVSDN Then begin
if ( var3 crosses under 0.88) and (trnd < 0) then sellshort next bar at market;

Reply With Quote
 
  #7 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,731 since Apr 2013
Thanks: 265 given, 998 received
Forum Reputation: Legendary

AhmedF,

for that code you could for example set VVSUP and VVSDN to false when your profit goals are met. Additionally you can exclude this part from being executed when your goals are met:
 
Code
if profitGoalIsMet = false then
begin
if (data2var2 > 0 )
then begin
vvsup = true;
VVSDN = False;
end;
if (data2var2 < 0 )
then begin
vvsup = False;
VVSDN = True;
end;
end
else
begin
vvsup = False;
VVSDN = false;
end;
Something like the above should work, under the condition that profitGoalIsMet is a boolean variable that holds the result of your profit goal check.

Regards,

ABCTG

Reply With Quote

Reply



futures io > > > > > NetProfit

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

July Journal Challenge - $500 in Amazon Gift Cards!

July

Battlestations: $750 in prizes - Show us your trading desk!

August

TBA: FuturesTrader71 w/Morad Askar

Elite only
     


All times are GMT -4. The time now is 12:50 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2018-07-22 in 0.11 seconds with 13 queries on phoenix