auto close all position after profit free

by m.kepka.90 in category Other at 23/11/2021
Description
If you want to close all positions after profit, this is for you. All you need to do is rewrite how much money you need before automating your positions. Cbot closes all positions, including pending orders!
Warning! Executing the following cBot may result in loss of funds. Use it at your own risk.
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgo
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]

    public class closeallpositionafterprofit : Robot
    {
        protected override void OnTick()
        {
            if (Account.Equity - Account.Balance > 10)
            {
                foreach (var position in Account.Positions)
                {
                    Trade.Close(position);

                }

                foreach (var order in PendingOrders)
                {
                    CancelPendingOrder(order);
                }
            }

        }
    }
}



Comments

kanejoyce885 - November 24, 2021 @ 06:37

I loved reading your article and found it to be really useful. If you have any extra time, you are welcome to join me in playing smash karts

hr.expect2012 - February 09, 2022 @ 01:47

Excellent. For big enthusiasts there is the right place and https://bestcasinosonlines.com/playamo-casino/ is the best option.

gsean5345 - April 04, 2022 @ 05:30

Thanks for the information. At Placard Portugal login you can find the best betting offers and a wide variety of games, from gambling, to the latest video slot titles, roulette, blackjack and much more!

lawrencecaroll64 - April 04, 2022 @ 23:27

Great! Drakemall Premium - https://drakemall.com/vip has been an excellent investment for me, and I'm glad I made the choice to sign up. As a VIP customer, I get a free surprise package each day with a variety of interesting items. Additionally, I provide perks like as coupon vouchers and expedited shipping. Isn't it fantastic?

lanzjane19 - July 22, 2022 @ 02:31

It's time to clear your schedule and make some space for our games in your house. Our gaming platform https://richcasino365.com/casinochan-review/ is designed to deliver fast action, fun and excitement just like real casinos, but with multiple features that will make you feel right at home.

Omega - August 28, 2022 @ 04:56

Hi,

I'm interested in this bot, question, if I'm running a 4 currencies all with different dollar value profit targets can I set this robot to each of the charts and set it up for each different currencies separately?

eryn2435peralta - September 02, 2022 @ 13:49

Online casino is the best entertainment to have fun. The best online casino brands https://cryptocasinos-ca.ca/casinos/casinochan/ will treat gaming enthusiasts to a wide range of games and offer the fastest and most secure gaming experience. You can have fun playing numerous games like slots, roulette, blackjack and baccarat while enjoying an all-inclusive player experience with live dealers.

sheelakijowani01 - September 19, 2022 @ 15:47

In this article, I am going to discuss how you can use BOA to close all positions after profit. You need to check this 바카라사이트 and get more new tips for game design. The arena is the most advanced automated trading program, which not only closes all positions after profit but also keeps the account balance in a certain position at a certain profit.

xcxc75802 - September 20, 2022 @ 10:20

Hello, Neat post. There is an issue along with your site in web explorer, could test this¡K IE still is the marketplace leader and a huge portion of other people will miss your magnificent writing because of this problem.  바카라사이트

0