this script simulates movement of nbt in dollars.
it starts at $1 and then adds/subtracts a random float between -0.01 and 0.01 3800 times.
the rate is not allowed to go above 0.9 or 1.10. if the random rate takes it above or below that number it will be pinned at that number.
it keeps track of the total average (std ma).
the real ma over 20 loops. (real ma)
and what we will call the 'limited ma' (ltd ma) (the inaccurate one used by the bot)
it then prints out the results of the final 200 movements/loops.
the (xxx%) is the % difference from the real moving average.
count | rate | real ma | ltd ma (% diff) | std ma (% diff) | No MA ($1) |
---|---|---|---|---|---|
3600 | 1.015 | $1.014 | $1.012 (0.158%) | $1.002(1.183%) | |
3601 | 1.020 | $1.014 | $1.012 (0.174%) | $1.002(1.232%) | |
3602 | 1.020 | $1.015 | $1.013 (0.211%) | $1.002(1.304%) | |
3603 | 1.020 | $1.015 | $1.013 (0.201%) | $1.002(1.326%) | |
3604 | 1.020 | $1.016 | $1.013 (0.210%) | $1.002(1.366%) | |
3605 | 1.012 | $1.015 | $1.013 (0.177%) | $1.002(1.324%) | |
3606 | 1.014 | $1.015 | $1.013 (0.167%) | $1.002(1.318%) | |
3607 | 1.019 | $1.015 | $1.014 (0.176%) | $1.002(1.352%) | |
3608 | 1.019 | $1.016 | $1.014 (0.213%) | $1.002(1.413%) | |
3609 | 1.020 | $1.016 | $1.014 (0.207%) | $1.002(1.435%) | |
3610 | 1.020 | $1.016 | $1.014 (0.181%) | $1.002(1.434%) | |
3611 | 1.020 | $1.016 | $1.015 (0.155%) | $1.002(1.434%) | |
3612 | 1.015 | $1.016 | $1.015 (0.129%) | $1.002(1.406%) | |
3613 | 1.005 | $1.015 | $1.014 (0.098%) | $1.002(1.330%) | |
3614 | 1.009 | $1.015 | $1.014 (0.067%) | $1.002(1.272%) | |
3615 | 1.008 | $1.014 | $1.014 (0.079%) | $1.002(1.256%) | |
3616 | 1.002 | $1.014 | $1.013 (0.112%) | $1.002(1.235%) | |
3617 | 0.992 | $1.013 | $1.012 (0.122%) | $1.002(1.152%) | |
3618 | 0.987 | $1.012 | $1.011 (0.140%) | $1.002(1.054%) | |
3619 | 0.995 | $1.011 | $1.010 (0.118%) | $1.002(0.959%) | |
3620 | 0.988 | $1.010 | $1.009 (0.085%) | $1.002(0.825%) | |
3621 | 0.990 | $1.009 | $1.008 (0.026%) | $1.002(0.679%) | |
3622 | 0.997 | $1.008 | $1.008 (-0.037%) | $1.002(0.566%) | |
3623 | 1.003 | $1.007 | $1.008 (-0.099%) | $1.002(0.480%) | |
3624 | 1.006 | $1.006 | $1.008 (-0.162%) | $1.002(0.408%) | |
3625 | 1.012 | $1.006 | $1.008 (-0.180%) | $1.002(0.410%) | |
3626 | 1.009 | $1.006 | $1.008 (-0.211%) | $1.002(0.382%) | |
3627 | 1.011 | $1.005 | $1.008 (-0.265%) | $1.002(0.341%) | |
3628 | 1.008 | $1.005 | $1.008 (-0.319%) | $1.002(0.289%) | |
3629 | 1.017 | $1.005 | $1.008 (-0.374%) | $1.002(0.275%) | |
3630 | 1.020 | $1.005 | $1.009 (-0.426%) | $1.002(0.275%) | |
3631 | 1.016 | $1.004 | $1.009 (-0.478%) | $1.002(0.257%) | |
3632 | 1.014 | $1.004 | $1.009 (-0.502%) | $1.002(0.256%) | |
3633 | 1.020 | $1.005 | $1.010 (-0.473%) | $1.002(0.331%) | |
3634 | 1.018 | $1.006 | $1.010 (-0.462%) | $1.002(0.377%) | |
3635 | 1.019 | $1.006 | $1.011 (-0.445%) | $1.002(0.433%) | |
3636 | 1.018 | $1.007 | $1.011 (-0.397%) | $1.002(0.514%) | |
3637 | 1.015 | $1.008 | $1.011 (-0.303%) | $1.002(0.628%) | |
3638 | 1.007 | $1.009 | $1.011 (-0.184%) | $1.002(0.727%) | |
3639 | 1.015 | $1.010 | $1.011 (-0.102%) | $1.002(0.827%) | |
3640 | 1.018 | $1.012 | $1.011 (0.016%) | $1.002(0.975%) | |
3641 | 1.020 | $1.013 | $1.012 (0.126%) | $1.002(1.124%) | |
3642 | 1.020 | $1.014 | $1.012 (0.201%) | $1.002(1.236%) | |
3643 | 1.020 | $1.015 | $1.013 (0.251%) | $1.002(1.321%) | |
3644 | 1.015 | $1.016 | $1.013 (0.286%) | $1.002(1.369%) | |
3645 | 1.005 | $1.015 | $1.012 (0.287%) | $1.002(1.336%) | |
3646 | 1.010 | $1.015 | $1.012 (0.305%) | $1.002(1.345%) | |
3647 | 1.020 | $1.016 | $1.013 (0.315%) | $1.002(1.389%) | |
3648 | 1.017 | $1.016 | $1.013 (0.338%) | $1.002(1.433%) | |
3649 | 1.018 | $1.016 | $1.013 (0.318%) | $1.002(1.433%) | |
3650 | 1.014 | $1.016 | $1.013 (0.284%) | $1.002(1.400%) | |
3651 | 1.014 | $1.016 | $1.013 (0.268%) | $1.002(1.387%) | |
3652 | 1.014 | $1.016 | $1.013 (0.261%) | $1.002(1.383%) | |
3653 | 1.020 | $1.016 | $1.013 (0.231%) | $1.002(1.382%) | |
3654 | 1.020 | $1.016 | $1.014 (0.213%) | $1.002(1.394%) | |
3655 | 1.020 | $1.016 | $1.014 (0.190%) | $1.002(1.398%) | |
3656 | 1.013 | $1.016 | $1.014 (0.170%) | $1.002(1.371%) | |
3657 | 1.019 | $1.016 | $1.014 (0.165%) | $1.002(1.387%) | |
3658 | 1.016 | $1.016 | $1.014 (0.203%) | $1.002(1.433%) | |
3659 | 1.015 | $1.016 | $1.014 (0.199%) | $1.002(1.430%) | |
3660 | 1.014 | $1.016 | $1.014 (0.183%) | $1.002(1.411%) | |
3661 | 1.019 | $1.016 | $1.014 (0.157%) | $1.002(1.406%) | |
3662 | 1.020 | $1.016 | $1.015 (0.132%) | $1.002(1.404%) | |
3663 | 1.020 | $1.016 | $1.015 (0.108%) | $1.002(1.404%) | |
3664 | 1.016 | $1.016 | $1.015 (0.107%) | $1.002(1.407%) | |
3665 | 1.007 | $1.016 | $1.015 (0.151%) | $1.002(1.416%) | |
3666 | 1.012 | $1.016 | $1.015 (0.171%) | $1.002(1.425%) | |
3667 | 1.011 | $1.016 | $1.014 (0.142%) | $1.002(1.379%) | |
3668 | 1.014 | $1.016 | $1.014 (0.129%) | $1.002(1.364%) | |
3669 | 1.011 | $1.015 | $1.014 (0.112%) | $1.002(1.333%) | |
3670 | 1.004 | $1.015 | $1.014 (0.110%) | $1.002(1.284%) | |
3671 | 0.997 | $1.014 | $1.013 (0.103%) | $1.002(1.199%) | |
3672 | 0.999 | $1.013 | $1.012 (0.093%) | $1.002(1.126%) | |
3673 | 0.990 | $1.012 | $1.011 (0.045%) | $1.002(0.975%) | |
3674 | 0.985 | $1.010 | $1.010 (-0.010%) | $1.002(0.801%) | |
3675 | 0.989 | $1.008 | $1.009 (-0.068%) | $1.002(0.645%) | |
3676 | 0.997 | $1.008 | $1.009 (-0.091%) | $1.002(0.570%) | |
3677 | 0.992 | $1.006 | $1.008 (-0.148%) | $1.002(0.438%) | |
3678 | 0.995 | $1.005 | $1.007 (-0.194%) | $1.002(0.332%) | |
3679 | 0.988 | $1.004 | $1.006 (-0.239%) | $1.002(0.198%) | |
3680 | 0.986 | $1.003 | $1.005 (-0.285%) | $1.002(0.061%) | |
3681 | 0.984 | $1.001 | $1.004 (-0.364%) | $1.002(-0.115%) | |
3682 | 0.992 | $0.999 | $1.004 (-0.445%) | $1.002(-0.255%) | |
3683 | 0.990 | $0.998 | $1.003 (-0.532%) | $1.002(-0.405%) | |
3684 | 0.986 | $0.996 | $1.002 (-0.605%) | $1.002(-0.555%) | |
3685 | 0.980 | $0.995 | $1.001 (-0.640%) | $1.002(-0.691%) | |
3686 | 0.985 | $0.994 | $1.001 (-0.701%) | $1.002(-0.828%) | |
3687 | 0.986 | $0.992 | $1.000 (-0.759%) | $1.002(-0.949%) | |
3688 | 0.980 | $0.991 | $0.999 (-0.839%) | $1.002(-1.118%) | |
3689 | 0.986 | $0.989 | $0.999 (-0.908%) | $1.002(-1.245%) | |
3690 | 0.985 | $0.989 | $0.998 (-0.940%) | $1.002(-1.337%) | |
3691 | 0.993 | $0.988 | $0.998 (-0.936%) | $1.002(-1.354%) | |
3692 | 0.998 | $0.988 | $0.998 (-0.943%) | $1.002(-1.358%) | |
3693 | 1.005 | $0.989 | $0.998 (-0.900%) | $1.002(-1.285%) | |
3694 | 1.000 | $0.990 | $0.998 (-0.833%) | $1.002(-1.211%) | |
3695 | 1.001 | $0.990 | $0.998 (-0.785%) | $1.002(-1.152%) | |
3696 | 1.002 | $0.991 | $0.998 (-0.779%) | $1.002(-1.127%) | |
3697 | 1.012 | $0.992 | $0.999 (-0.741%) | $1.002(-1.028%) | |
3698 | 1.009 | $0.992 | $0.999 (-0.714%) | $1.002(-0.959%) | |
3699 | 1.002 | $0.993 | $1.000 (-0.654%) | $1.002(-0.886%) | |
3700 | 1.000 | $0.994 | $1.000 (-0.587%) | $1.002(-0.818%) | |
3701 | 0.996 | $0.994 | $0.999 (-0.510%) | $1.002(-0.758%) | |
3702 | 0.991 | $0.994 | $0.999 (-0.474%) | $1.002(-0.759%) | |
3703 | 0.983 | $0.994 | $0.998 (-0.435%) | $1.002(-0.792%) | |
3704 | 0.992 | $0.994 | $0.998 (-0.376%) | $1.002(-0.763%) | |
3705 | 0.992 | $0.995 | $0.998 (-0.289%) | $1.002(-0.703%) | |
3706 | 0.998 | $0.996 | $0.998 (-0.223%) | $1.002(-0.635%) | |
3707 | 0.992 | $0.996 | $0.997 (-0.169%) | $1.002(-0.610%) | |
3708 | 1.001 | $0.997 | $0.998 (-0.080%) | $1.002(-0.505%) | |
3709 | 0.997 | $0.997 | $0.998 (-0.022%) | $1.002(-0.447%) | |
3710 | 0.992 | $0.998 | $0.997 (0.039%) | $1.002(-0.410%) | |
3711 | 0.987 | $0.997 | $0.997 (0.055%) | $1.002(-0.441%) | |
3712 | 0.985 | $0.997 | $0.996 (0.043%) | $1.002(-0.505%) | |
3713 | 0.980 | $0.996 | $0.996 (-0.005%) | $1.002(-0.627%) | |
3714 | 0.980 | $0.995 | $0.995 (-0.032%) | $1.002(-0.724%) | |
3715 | 0.980 | $0.994 | $0.994 (-0.068%) | $1.002(-0.826%) | |
3716 | 0.980 | $0.992 | $0.994 (-0.115%) | $1.002(-0.938%) | |
3717 | 0.980 | $0.991 | $0.993 (-0.214%) | $1.002(-1.097%) | |
3718 | 0.980 | $0.989 | $0.992 (-0.299%) | $1.002(-1.239%) | |
3719 | 0.980 | $0.988 | $0.992 (-0.354%) | $1.002(-1.349%) | |
3720 | 0.981 | $0.987 | $0.991 (-0.399%) | $1.002(-1.441%) | |
3721 | 0.981 | $0.987 | $0.991 (-0.426%) | $1.002(-1.514%) | |
3722 | 0.980 | $0.986 | $0.990 (-0.434%) | $1.002(-1.570%) | |
3723 | 0.983 | $0.986 | $0.990 (-0.400%) | $1.002(-1.569%) | |
3724 | 0.980 | $0.986 | $0.990 (-0.413%) | $1.002(-1.626%) | |
3725 | 0.980 | $0.985 | $0.989 (-0.429%) | $1.002(-1.685%) | |
3726 | 0.989 | $0.984 | $0.989 (-0.475%) | $1.002(-1.732%) | |
3727 | 0.980 | $0.984 | $0.989 (-0.491%) | $1.002(-1.790%) | |
3728 | 0.981 | $0.983 | $0.988 (-0.558%) | $1.002(-1.889%) | |
3729 | 0.983 | $0.982 | $0.988 (-0.607%) | $1.002(-1.962%) | |
3730 | 0.980 | $0.982 | $0.988 (-0.632%) | $1.002(-2.023%) | |
3731 | 0.988 | $0.982 | $0.988 (-0.628%) | $1.002(-2.016%) | |
3732 | 0.988 | $0.982 | $0.988 (-0.616%) | $1.002(-2.003%) | |
3733 | 0.987 | $0.982 | $0.988 (-0.576%) | $1.002(-1.966%) | |
3734 | 0.981 | $0.982 | $0.987 (-0.540%) | $1.002(-1.962%) | |
3735 | 0.982 | $0.982 | $0.987 (-0.505%) | $1.002(-1.954%) | |
3736 | 0.980 | $0.982 | $0.987 (-0.472%) | $1.002(-1.953%) | |
3737 | 0.980 | $0.982 | $0.987 (-0.441%) | $1.002(-1.952%) | |
3738 | 0.989 | $0.983 | $0.987 (-0.407%) | $1.002(-1.909%) | |
3739 | 0.980 | $0.983 | $0.986 (-0.376%) | $1.002(-1.909%) | |
3740 | 0.980 | $0.983 | $0.986 (-0.355%) | $1.002(-1.916%) | |
3741 | 0.986 | $0.983 | $0.986 (-0.329%) | $1.002(-1.892%) | |
3742 | 0.986 | $0.983 | $0.986 (-0.298%) | $1.002(-1.860%) | |
3743 | 0.982 | $0.983 | $0.986 (-0.286%) | $1.002(-1.864%) | |
3744 | 0.986 | $0.983 | $0.986 (-0.256%) | $1.002(-1.832%) | |
3745 | 0.993 | $0.984 | $0.986 (-0.223%) | $1.002(-1.768%) | |
3746 | 0.997 | $0.984 | $0.987 (-0.230%) | $1.002(-1.726%) | |
3747 | 0.989 | $0.985 | $0.987 (-0.195%) | $1.002(-1.680%) | |
3748 | 0.995 | $0.986 | $0.987 (-0.162%) | $1.002(-1.612%) | |
3749 | 1.004 | $0.987 | $0.988 (-0.132%) | $1.002(-1.506%) | |
3750 | 0.998 | $0.988 | $0.988 (-0.088%) | $1.002(-1.418%) | |
3751 | 0.993 | $0.988 | $0.989 (-0.085%) | $1.002(-1.396%) | |
3752 | 0.998 | $0.988 | $0.989 (-0.078%) | $1.002(-1.343%) | |
3753 | 1.007 | $0.989 | $0.990 (-0.060%) | $1.002(-1.243%) | |
3754 | 1.001 | $0.990 | $0.990 (-0.008%) | $1.002(-1.142%) | |
3755 | 1.002 | $0.991 | $0.991 (0.041%) | $1.002(-1.043%) | |
3756 | 1.002 | $0.992 | $0.991 (0.101%) | $1.002(-0.932%) | |
3757 | 0.995 | $0.993 | $0.992 (0.160%) | $1.002(-0.856%) | |
3758 | 0.989 | $0.993 | $0.991 (0.174%) | $1.002(-0.853%) | |
3759 | 0.990 | $0.994 | $0.991 (0.231%) | $1.002(-0.801%) | |
3760 | 0.997 | $0.995 | $0.992 (0.291%) | $1.002(-0.716%) | |
3761 | 0.991 | $0.995 | $0.992 (0.321%) | $1.002(-0.691%) | |
3762 | 0.998 | $0.995 | $0.992 (0.351%) | $1.002(-0.632%) | |
3763 | 0.996 | $0.996 | $0.992 (0.401%) | $1.002(-0.562%) | |
3764 | 1.003 | $0.997 | $0.993 (0.434%) | $1.002(-0.478%) | |
3765 | 0.997 | $0.997 | $0.993 (0.436%) | $1.002(-0.455%) | |
3766 | 0.990 | $0.997 | $0.993 (0.414%) | $1.002(-0.490%) | |
3767 | 0.996 | $0.997 | $0.993 (0.433%) | $1.002(-0.457%) | |
3768 | 1.004 | $0.998 | $0.993 (0.428%) | $1.002(-0.410%) | |
3769 | 0.997 | $0.997 | $0.994 (0.376%) | $1.002(-0.443%) | |
3770 | 1.000 | $0.997 | $0.994 (0.358%) | $1.002(-0.433%) | |
3771 | 0.998 | $0.998 | $0.994 (0.365%) | $1.002(-0.406%) | |
3772 | 1.007 | $0.998 | $0.995 (0.348%) | $1.002(-0.363%) | |
3773 | 0.998 | $0.998 | $0.995 (0.286%) | $1.002(-0.409%) | |
3774 | 0.990 | $0.997 | $0.995 (0.253%) | $1.002(-0.465%) | |
3775 | 0.986 | $0.996 | $0.994 (0.214%) | $1.002(-0.544%) | |
3776 | 0.988 | $0.996 | $0.994 (0.170%) | $1.002(-0.616%) | |
3777 | 0.986 | $0.995 | $0.993 (0.160%) | $1.002(-0.660%) | |
3778 | 0.982 | $0.995 | $0.993 (0.177%) | $1.002(-0.696%) | |
3779 | 0.980 | $0.994 | $0.992 (0.184%) | $1.002(-0.746%) | |
3780 | 0.989 | $0.994 | $0.992 (0.159%) | $1.002(-0.784%) | |
3781 | 0.994 | $0.994 | $0.992 (0.168%) | $1.002(-0.768%) | |
3782 | 0.986 | $0.993 | $0.992 (0.136%) | $1.002(-0.826%) | |
3783 | 0.984 | $0.993 | $0.992 (0.111%) | $1.002(-0.887%) | |
3784 | 0.980 | $0.992 | $0.991 (0.047%) | $1.002(-1.003%) | |
3785 | 0.985 | $0.991 | $0.991 (0.014%) | $1.002(-1.061%) | |
3786 | 0.980 | $0.991 | $0.990 (0.014%) | $1.002(-1.109%) | |
3787 | 0.981 | $0.990 | $0.990 (-0.018%) | $1.002(-1.183%) | |
3788 | 0.980 | $0.989 | $0.990 (-0.093%) | $1.002(-1.302%) | |
3789 | 0.982 | $0.988 | $0.989 (-0.137%) | $1.002(-1.379%) | |
3790 | 0.980 | $0.987 | $0.989 (-0.195%) | $1.002(-1.477%) | |
3791 | 0.986 | $0.986 | $0.989 (-0.243%) | $1.002(-1.536%) | |
3792 | 0.994 | $0.986 | $0.989 (-0.335%) | $1.002(-1.603%) | |
3793 | 1.000 | $0.986 | $0.989 (-0.376%) | $1.002(-1.592%) | |
3794 | 1.007 | $0.987 | $0.990 (-0.368%) | $1.002(-1.503%) | |
3795 | 1.014 | $0.988 | $0.991 (-0.333%) | $1.002(-1.359%) | |
3796 | 1.020 | $0.990 | $0.993 (-0.302%) | $1.002(-1.199%) | |
3797 | 1.017 | $0.991 | $0.994 (-0.257%) | $1.002(-1.043%) | |
3798 | 1.016 | $0.993 | $0.995 (-0.187%) | $1.002(-0.875%) | |
3799 | 1.020 | $0.995 | $0.996 (-0.104%) | $1.002(-0.677%) | |
Total of Ltd Ma Variations: -22.813 | Total of Std ma variations: -48.181 |